suricata
util-exception-policy.h File Reference
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.

Functions

const char * ExceptionPolicyEnumToString (enum ExceptionPolicy policy, bool is_json)
 
const char * ExceptionPolicyTargetFlagToString (uint8_t target_flag)
 
enum ExceptionPolicy ExceptionPolicyTargetPolicy (uint8_t target_flag)
 
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)
 
void ExceptionPolicySetStatsCounters (ThreadVars *tv, ExceptionPolicyCounters *counter, ExceptionPolicyStatsSetts *setting, enum ExceptionPolicy conf_policy, const char *default_str, bool(*isExceptionPolicyValid)(enum ExceptionPolicy))
 
int ExceptionSimulationCommandLineParser (const char *name, const char *arg)
 

Variables

enum ExceptionPolicy g_eps_master_switch
 

Function Documentation

◆ ExceptionPolicyApply()

◆ ExceptionPolicyEnumToString()

◆ ExceptionPolicyMidstreamParse()

enum ExceptionPolicy ExceptionPolicyMidstreamParse ( bool  midstream_enabled)

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

References EngineModeIsIPS(), EXCEPTION_POLICY_AUTO, EXCEPTION_POLICY_DROP_FLOW, EXCEPTION_POLICY_DROP_PACKET, EXCEPTION_POLICY_NOT_SET, EXCEPTION_POLICY_PASS_FLOW, EXCEPTION_POLICY_PASS_PACKET, FatalErrorOnInit, and SCConfGet().

Referenced by StreamTcpInitConfig().

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

◆ ExceptionPolicyParse()

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

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

References EXCEPTION_POLICY_AUTO, EXCEPTION_POLICY_NOT_SET, ExceptionPolicyEnumToString(), SCConfGet(), and SCLogConfig.

Referenced by DefragInitConfig(), FlowInitConfig(), SetMasterExceptionPolicy(), and StreamTcpInitConfig().

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

◆ ExceptionPolicySetStatsCounters()

void ExceptionPolicySetStatsCounters ( ThreadVars tv,
ExceptionPolicyCounters counter,
ExceptionPolicyStatsSetts setting,
enum ExceptionPolicy  conf_policy,
const char *  default_str,
bool(*)(enum ExceptionPolicy isExceptionPolicyValid 
)

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

References ExceptionPolicyCounters_::eps_id, ExceptionPolicyStatsSetts_::eps_name, EXCEPTION_POLICY_MAX, EXCEPTION_POLICY_NOT_SET, ExceptionPolicyEnumToString(), StatsRegisterCounter(), and tv.

Referenced by DecodeRegisterPerfCounters(), and StreamTcpThreadInit().

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

◆ ExceptionPolicyTargetFlagToString()

◆ ExceptionPolicyTargetPolicy()

◆ ExceptionSimulationCommandLineParser()

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

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

Referenced by SCParseCommandLine().

Here is the caller graph for this function:

◆ SetMasterExceptionPolicy()

void SetMasterExceptionPolicy ( void  )

Definition at line 63 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
extern

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

Referenced by SetMasterExceptionPolicy().