suricata
|
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 |
void ExceptionPolicyApply | ( | Packet * | p, |
enum ExceptionPolicy | policy, | ||
enum PacketDropReason | drop_reason | ||
) |
Definition at line 136 of file util-exception-policy.c.
References ACTION_DROP, ACTION_REJECT, Flow_::applied_exception_policy, EngineModeIsIPS(), EXCEPTION_POLICY_AUTO, EXCEPTION_POLICY_BYPASS_FLOW, EXCEPTION_POLICY_DROP_FLOW, EXCEPTION_POLICY_DROP_PACKET, EXCEPTION_POLICY_NOT_SET, EXCEPTION_POLICY_PASS_FLOW, EXCEPTION_POLICY_PASS_PACKET, EXCEPTION_POLICY_REJECT, Flow_::flags, Packet_::flow, FLOW_ACTION_DROP, FLOW_ACTION_PASS, PacketBypassCallback(), PacketDrop(), Packet_::pcap_cnt, SCLogDebug, and StreamTcpDisableAppLayer().
Referenced by AppLayerHandleTCPData(), AppLayerHandleUdp(), and StreamTcpReassembleHandleSegment().
const char * ExceptionPolicyEnumToString | ( | enum ExceptionPolicy | policy, |
bool | is_json | ||
) |
Definition at line 39 of file util-exception-policy.c.
References EXCEPTION_POLICY_AUTO, EXCEPTION_POLICY_BYPASS_FLOW, EXCEPTION_POLICY_DROP_FLOW, EXCEPTION_POLICY_DROP_PACKET, EXCEPTION_POLICY_NOT_SET, EXCEPTION_POLICY_PASS_FLOW, EXCEPTION_POLICY_PASS_PACKET, and EXCEPTION_POLICY_REJECT.
Referenced by AppLayerSetupCounters(), ExceptionPolicyParse(), and ExceptionPolicySetStatsCounters().
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().
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().
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().
const char * ExceptionPolicyTargetFlagToString | ( | uint8_t | target_flag | ) |
enum ExceptionPolicy ExceptionPolicyTargetPolicy | ( | uint8_t | target_flag | ) |
Definition at line 115 of file util-exception-policy.c.
References AppLayerErrorGetExceptionPolicy(), DefragGetMemcapExceptionPolicy(), EXCEPTION_POLICY_NOT_SET, EXCEPTION_TARGET_FLAG_APPLAYER_ERROR, EXCEPTION_TARGET_FLAG_DEFRAG_MEMCAP, EXCEPTION_TARGET_FLAG_FLOW_MEMCAP, EXCEPTION_TARGET_FLAG_MIDSTREAM, EXCEPTION_TARGET_FLAG_REASSEMBLY_MEMCAP, EXCEPTION_TARGET_FLAG_SESSION_MEMCAP, FlowGetMemcapExceptionPolicy(), StreamMidstreamGetExceptionPolicy(), StreamTcpReassemblyMemcapGetExceptionPolicy(), and StreamTcpSsnMemcapGetExceptionPolicy().
int ExceptionSimulationCommandLineParser | ( | const char * | name, |
const char * | arg | ||
) |
Definition at line 384 of file util-exception-policy.c.
Referenced by SCParseCommandLine().
void SetMasterExceptionPolicy | ( | void | ) |
Definition at line 63 of file util-exception-policy.c.
References ExceptionPolicyParse(), and g_eps_master_switch.
Referenced by PostConfLoadedSetup().
|
extern |
Definition at line 35 of file util-exception-policy.c.
Referenced by SetMasterExceptionPolicy().