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 SURICATA_UTIL_CONFIG_H
25
#define SURICATA_UTIL_CONFIG_H
26
27
enum
ConfigAction
{
28
CONFIG_ACTION_SET
= 1,
29
};
30
31
enum
ConfigSubsys
{
32
CONFIG_SUBSYS_LOGGING
= 0,
33
};
34
35
enum
ConfigType
{
36
CONFIG_TYPE_TX
= 0,
/* transaction logging */
37
CONFIG_TYPE_FLOW
,
/* flow logging */
38
CONFIG_TYPE_ALERT
,
/* alert logging */
39
CONFIG_TYPE_ANOMALY
,
/* anomaly logging */
40
CONFIG_TYPE_FILE
,
/* file logging */
41
CONFIG_TYPE_PCAP
,
/* pcap logging */
42
CONFIG_TYPE_DROP
,
/* drop logging */
43
#define CONFIG_TYPE_DEFAULT CONFIG_TYPE_TX
44
};
45
46
enum
ConfigScope
{
47
CONFIG_SCOPE_TX
= 0,
/* per transaction */
48
CONFIG_SCOPE_FLOW
,
/* per flow */
49
#define CONFIG_SCOPE_DEFAULT CONFIG_SCOPE_TX
50
};
51
52
#endif
CONFIG_TYPE_TX
@ CONFIG_TYPE_TX
Definition:
util-config.h:36
CONFIG_ACTION_SET
@ CONFIG_ACTION_SET
Definition:
util-config.h:28
ConfigScope
ConfigScope
Definition:
util-config.h:46
CONFIG_SCOPE_TX
@ CONFIG_SCOPE_TX
Definition:
util-config.h:47
CONFIG_TYPE_DROP
@ CONFIG_TYPE_DROP
Definition:
util-config.h:42
ConfigSubsys
ConfigSubsys
Definition:
util-config.h:31
CONFIG_TYPE_ANOMALY
@ CONFIG_TYPE_ANOMALY
Definition:
util-config.h:39
CONFIG_TYPE_ALERT
@ CONFIG_TYPE_ALERT
Definition:
util-config.h:38
CONFIG_TYPE_FLOW
@ CONFIG_TYPE_FLOW
Definition:
util-config.h:37
CONFIG_TYPE_FILE
@ CONFIG_TYPE_FILE
Definition:
util-config.h:40
ConfigType
ConfigType
Definition:
util-config.h:35
ConfigAction
ConfigAction
Definition:
util-config.h:27
CONFIG_TYPE_PCAP
@ CONFIG_TYPE_PCAP
Definition:
util-config.h:41
CONFIG_SCOPE_FLOW
@ CONFIG_SCOPE_FLOW
Definition:
util-config.h:48
CONFIG_SUBSYS_LOGGING
@ CONFIG_SUBSYS_LOGGING
Definition:
util-config.h:32
src
util-config.h
Generated on Wed Nov 20 2024 23:30:38 for suricata by
1.8.18