suricata
util-exception-policy-types.h
Go to the documentation of this file.
1 /* Copyright (C) 2024 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 
22 #ifndef UTIL_EXCEPTION_POLICY_TYPES_H
23 #define UTIL_EXCEPTION_POLICY_TYPES_H
24 
34 };
35 
36 #define EXCEPTION_POLICY_MAX EXCEPTION_POLICY_REJECT + 1
37 
38 /* Max length = possible exception policy scenarios + counter names
39  * + exception policy type. E.g.:
40  * "tcp.reassembly_exception_policy.drop_packet" + 1 */
41 #define EXCEPTION_POLICY_COUNTER_MAX_LEN 45
42 
43 typedef struct ExceptionPolicyCounters_ {
44  /* Follows enum order */
47 
53 
54 #endif
EXCEPTION_POLICY_PASS_FLOW
@ EXCEPTION_POLICY_PASS_FLOW
Definition: util-exception-policy-types.h:29
EXCEPTION_POLICY_DROP_PACKET
@ EXCEPTION_POLICY_DROP_PACKET
Definition: util-exception-policy-types.h:31
ExceptionPolicyStatsSetts_
Definition: util-exception-policy-types.h:48
ExceptionPolicyStatsSetts
struct ExceptionPolicyStatsSetts_ ExceptionPolicyStatsSetts
EXCEPTION_POLICY_BYPASS_FLOW
@ EXCEPTION_POLICY_BYPASS_FLOW
Definition: util-exception-policy-types.h:30
EXCEPTION_POLICY_NOT_SET
@ EXCEPTION_POLICY_NOT_SET
Definition: util-exception-policy-types.h:26
EXCEPTION_POLICY_MAX
#define EXCEPTION_POLICY_MAX
Definition: util-exception-policy-types.h:36
ExceptionPolicyCounters_
Definition: util-exception-policy-types.h:43
EXCEPTION_POLICY_PASS_PACKET
@ EXCEPTION_POLICY_PASS_PACKET
Definition: util-exception-policy-types.h:28
EXCEPTION_POLICY_AUTO
@ EXCEPTION_POLICY_AUTO
Definition: util-exception-policy-types.h:27
ExceptionPolicyCounters_::eps_id
uint16_t eps_id[EXCEPTION_POLICY_MAX]
Definition: util-exception-policy-types.h:45
EXCEPTION_POLICY_DROP_FLOW
@ EXCEPTION_POLICY_DROP_FLOW
Definition: util-exception-policy-types.h:32
ExceptionPolicyStatsSetts_::valid_settings_ids
bool valid_settings_ids[EXCEPTION_POLICY_MAX]
Definition: util-exception-policy-types.h:50
EXCEPTION_POLICY_REJECT
@ EXCEPTION_POLICY_REJECT
Definition: util-exception-policy-types.h:33
ExceptionPolicyStatsSetts_::valid_settings_ips
bool valid_settings_ips[EXCEPTION_POLICY_MAX]
Definition: util-exception-policy-types.h:51
ExceptionPolicy
ExceptionPolicy
Definition: util-exception-policy-types.h:25
ExceptionPolicyCounters
struct ExceptionPolicyCounters_ ExceptionPolicyCounters
ExceptionPolicyStatsSetts_::eps_name
char eps_name[EXCEPTION_POLICY_MAX][EXCEPTION_POLICY_COUNTER_MAX_LEN]
Definition: util-exception-policy-types.h:49
EXCEPTION_POLICY_COUNTER_MAX_LEN
#define EXCEPTION_POLICY_COUNTER_MAX_LEN
Definition: util-exception-policy-types.h:41