suricata
util-config.h
Go to the documentation of this file.
1 /* Copyright (C) 2020 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file
20  *
21  * \author Victor Julien <victor@inliniac.net>
22  */
23 
24 #ifndef __UTIL_CONFIG_H__
25 #define __UTIL_CONFIG_H__
26 
30 };
31 
34 };
35 
36 enum ConfigType {
37  CONFIG_TYPE_TX = 0, /* transaction logging */
38  CONFIG_TYPE_FLOW, /* flow logging */
39  CONFIG_TYPE_ALERT, /* alert logging */
40  CONFIG_TYPE_ANOMALY, /* anomaly logging */
41  CONFIG_TYPE_FILE, /* file logging */
42  CONFIG_TYPE_PCAP, /* pcap logging */
43  CONFIG_TYPE_DROP, /* drop logging */
44 #define CONFIG_TYPE_DEFAULT CONFIG_TYPE_TX
45 };
46 
48  CONFIG_SCOPE_TX = 0, /* per transaction */
49  CONFIG_SCOPE_FLOW, /* per flow */
50 #define CONFIG_SCOPE_DEFAULT CONFIG_SCOPE_TX
51 };
52 
53 #endif
CONFIG_TYPE_TX
@ CONFIG_TYPE_TX
Definition: util-config.h:37
CONFIG_ACTION_UNSET
@ CONFIG_ACTION_UNSET
Definition: util-config.h:28
CONFIG_ACTION_SET
@ CONFIG_ACTION_SET
Definition: util-config.h:29
ConfigScope
ConfigScope
Definition: util-config.h:47
CONFIG_SCOPE_TX
@ CONFIG_SCOPE_TX
Definition: util-config.h:48
CONFIG_TYPE_DROP
@ CONFIG_TYPE_DROP
Definition: util-config.h:43
ConfigSubsys
ConfigSubsys
Definition: util-config.h:32
CONFIG_TYPE_ANOMALY
@ CONFIG_TYPE_ANOMALY
Definition: util-config.h:40
CONFIG_TYPE_ALERT
@ CONFIG_TYPE_ALERT
Definition: util-config.h:39
CONFIG_TYPE_FLOW
@ CONFIG_TYPE_FLOW
Definition: util-config.h:38
CONFIG_TYPE_FILE
@ CONFIG_TYPE_FILE
Definition: util-config.h:41
ConfigType
ConfigType
Definition: util-config.h:36
ConfigAction
ConfigAction
Definition: util-config.h:27
CONFIG_TYPE_PCAP
@ CONFIG_TYPE_PCAP
Definition: util-config.h:42
CONFIG_SCOPE_FLOW
@ CONFIG_SCOPE_FLOW
Definition: util-config.h:49
CONFIG_SUBSYS_LOGGING
@ CONFIG_SUBSYS_LOGGING
Definition: util-config.h:33