suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "packet.h"
#include "util-exception-policy.h"
#include "util-misc.h"
#include "stream-tcp-reassemble.h"
#include "action-globals.h"
#include "conf.h"
Go to the source code of this file.
Functions | |
const char * | ExceptionPolicyEnumToString (enum ExceptionPolicy policy, bool is_json) |
void | SetMasterExceptionPolicy (void) |
void | ExceptionPolicyApply (Packet *p, enum ExceptionPolicy policy, enum PacketDropReason drop_reason) |
enum ExceptionPolicy | ExceptionPolicyParse (const char *option, 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 = EXCEPTION_POLICY_NOT_SET |
void ExceptionPolicyApply | ( | Packet * | p, |
enum ExceptionPolicy | policy, | ||
enum PacketDropReason | drop_reason | ||
) |
Definition at line 69 of file util-exception-policy.c.
const char* ExceptionPolicyEnumToString | ( | enum ExceptionPolicy | policy, |
bool | is_json | ||
) |
Definition at line 35 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 ExceptionPolicySetStatsCounters().
enum ExceptionPolicy ExceptionPolicyMidstreamParse | ( | bool | midstream_enabled | ) |
Definition at line 69 of file util-exception-policy.c.
Referenced by StreamTcpInitConfig().
enum ExceptionPolicy ExceptionPolicyParse | ( | const char * | option, |
bool | support_flow | ||
) |
Definition at line 69 of file util-exception-policy.c.
References ACTION_REJECT, EngineModeIsIPS(), EXCEPTION_POLICY_AUTO, EXCEPTION_POLICY_DROP_FLOW, EXCEPTION_POLICY_NOT_SET, EXCEPTION_POLICY_REJECT, Flow_::flags, Packet_::flow, FLOW_ACTION_DROP, PacketDrop(), Packet_::pcap_cnt, and SCLogDebug.
Referenced by 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 298 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().
int ExceptionSimulationCommandLineParser | ( | const char * | name, |
const char * | arg | ||
) |
Definition at line 316 of file util-exception-policy.c.
void SetMasterExceptionPolicy | ( | void | ) |
Definition at line 59 of file util-exception-policy.c.
References ExceptionPolicyParse(), and g_eps_master_switch.
Referenced by PostConfLoadedSetup().
enum ExceptionPolicy g_eps_master_switch = EXCEPTION_POLICY_NOT_SET |
Definition at line 1 of file util-exception-policy.c.
Referenced by SetMasterExceptionPolicy().