suricata
util-exception-policy.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ExceptionPolicy {
  EXCEPTION_POLICY_IGNORE = 0, EXCEPTION_POLICY_PASS_PACKET, EXCEPTION_POLICY_PASS_FLOW, EXCEPTION_POLICY_BYPASS_FLOW,
  EXCEPTION_POLICY_DROP_PACKET, EXCEPTION_POLICY_DROP_FLOW
}
 

Functions

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

Enumeration Type Documentation

◆ ExceptionPolicy

Enumerator
EXCEPTION_POLICY_IGNORE 
EXCEPTION_POLICY_PASS_PACKET 
EXCEPTION_POLICY_PASS_FLOW 
EXCEPTION_POLICY_BYPASS_FLOW 
EXCEPTION_POLICY_DROP_PACKET 
EXCEPTION_POLICY_DROP_FLOW 

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

Function Documentation

◆ ExceptionPolicyApply()

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

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

Referenced by AppLayerHandleTCPData().

Here is the caller graph for this function:

◆ ExceptionPolicyParse()

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

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

References EngineModeIsIPS(), EXCEPTION_POLICY_DROP_FLOW, EXCEPTION_POLICY_DROP_PACKET, EXCEPTION_POLICY_IGNORE, Flow_::flags, Packet_::flow, FLOW_ACTION_DROP, Packet_::pcap_cnt, and SCLogDebug.

Referenced by FlowInitConfig(), and StreamTcpInitConfig().

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

◆ ExceptionSimulationCommandlineParser()

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

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