suricata
util-exception-policy.h File Reference
#include "decode.h"
Include dependency graph for util-exception-policy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ExceptionPolicy {
  EXCEPTION_POLICY_NOT_SET = 0, EXCEPTION_POLICY_AUTO, EXCEPTION_POLICY_PASS_PACKET, EXCEPTION_POLICY_PASS_FLOW,
  EXCEPTION_POLICY_BYPASS_FLOW, EXCEPTION_POLICY_DROP_PACKET, EXCEPTION_POLICY_DROP_FLOW, EXCEPTION_POLICY_REJECT
}
 

Functions

void SetMasterExceptionPolicy (void)
 
void ExceptionPolicyApply (Packet *p, enum ExceptionPolicy policy, enum PacketDropReason drop_reason)
 
enum ExceptionPolicy ExceptionPolicyParse (const char *option, const bool support_flow)
 
enum ExceptionPolicy ExceptionPolicyMidstreamParse (bool midstream_enabled)
 
int ExceptionSimulationCommandLineParser (const char *name, const char *arg)
 

Variables

enum ExceptionPolicy g_eps_master_switch
 

Enumeration Type Documentation

◆ ExceptionPolicy

Enumerator
EXCEPTION_POLICY_NOT_SET 
EXCEPTION_POLICY_AUTO 
EXCEPTION_POLICY_PASS_PACKET 
EXCEPTION_POLICY_PASS_FLOW 
EXCEPTION_POLICY_BYPASS_FLOW 
EXCEPTION_POLICY_DROP_PACKET 
EXCEPTION_POLICY_DROP_FLOW 
EXCEPTION_POLICY_REJECT 

Definition at line 27 of file util-exception-policy.h.

Function Documentation

◆ ExceptionPolicyApply()

void ExceptionPolicyApply ( Packet p,
enum ExceptionPolicy  policy,
enum PacketDropReason  drop_reason 
)

Definition at line 68 of file util-exception-policy.c.

◆ ExceptionPolicyMidstreamParse()

enum ExceptionPolicy ExceptionPolicyMidstreamParse ( bool  midstream_enabled)

Definition at line 68 of file util-exception-policy.c.

Referenced by StreamTcpInitConfig().

Here is the caller graph for this function:

◆ ExceptionPolicyParse()

enum ExceptionPolicy ExceptionPolicyParse ( const char *  option,
const bool  support_flow 
)

◆ ExceptionSimulationCommandLineParser()

int ExceptionSimulationCommandLineParser ( const char *  name,
const char *  arg 
)

Definition at line 299 of file util-exception-policy.c.

◆ SetMasterExceptionPolicy()

void SetMasterExceptionPolicy ( void  )

Definition at line 58 of file util-exception-policy.c.

References ExceptionPolicyParse(), and g_eps_master_switch.

Referenced by PostConfLoadedSetup().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_eps_master_switch

enum ExceptionPolicy g_eps_master_switch

Definition at line 1 of file util-exception-policy.c.

Referenced by SetMasterExceptionPolicy().