22#ifndef SURICATA_UTIL_EXCEPTION_POLICY_H
23#define SURICATA_UTIL_EXCEPTION_POLICY_H
38 const char *default_str,
bool (*isExceptionPolicyValid)(
enum ExceptionPolicy));
42extern uint64_t g_eps_applayer_error_offset_ts;
43extern uint64_t g_eps_applayer_error_offset_tc;
44extern uint64_t g_eps_pcap_packet_loss;
45extern uint64_t g_eps_stream_ssn_memcap;
46extern uint64_t g_eps_stream_reassembly_memcap;
47extern uint64_t g_eps_flow_memcap;
48extern uint64_t g_eps_defrag_memcap;
49extern bool g_eps_is_alert_queue_fail_mode;
Per thread variable structure.
const char * ExceptionPolicyTargetFlagToString(uint8_t target_flag)
enum ExceptionPolicy ExceptionPolicyTargetPolicy(uint8_t target_flag)
const char * ExceptionPolicyEnumToString(enum ExceptionPolicy policy, bool is_json)
enum ExceptionPolicy ExceptionPolicyMidstreamParse(bool midstream_enabled)
int ExceptionSimulationCommandLineParser(const char *name, const char *arg)
enum ExceptionPolicy g_eps_master_switch
void ExceptionPolicySetStatsCounters(ThreadVars *tv, ExceptionPolicyCounters *counter, ExceptionPolicyStatsSetts *setting, enum ExceptionPolicy conf_policy, const char *default_str, bool(*isExceptionPolicyValid)(enum ExceptionPolicy))
void ExceptionPolicyApply(Packet *p, enum ExceptionPolicy policy, enum PacketDropReason drop_reason)
enum ExceptionPolicy ExceptionPolicyParse(const char *option, const bool support_flow)
void SetMasterExceptionPolicy(void)