suricata
|
Go to the source code of this file.
Data Structures | |
struct | FlowRateConfig_ |
struct | FlowRateDirStore_ |
struct | FlowRateStore_ |
Typedefs | |
typedef struct FlowRateConfig_ | FlowRateConfig |
typedef struct FlowRateDirStore_ | FlowRateDirStore |
typedef struct FlowRateStore_ | FlowRateStore |
Functions | |
bool | FlowRateStorageEnabled (void) |
void | FlowRateRegisterFlowStorage (void) |
FlowRateStore * | FlowRateStoreInit (void) |
FlowStorageId | FlowRateGetStorageID (void) |
void | FlowRateStoreUpdate (FlowRateStore *, SCTime_t, uint32_t, int) |
bool | FlowRateIsExceeding (FlowRateStore *, int) |
void | FlowRateRegisterTests (void) |
Variables | |
FlowRateConfig | flow_rate_config |
Definition in file util-flow-rate.h.
typedef struct FlowRateConfig_ FlowRateConfig |
typedef struct FlowRateDirStore_ FlowRateDirStore |
typedef struct FlowRateStore_ FlowRateStore |
FlowStorageId FlowRateGetStorageID | ( | void | ) |
Definition at line 134 of file util-flow-rate.c.
References g_flowrate_storage_id.
bool FlowRateIsExceeding | ( | FlowRateStore * | , |
int | |||
) |
Definition at line 226 of file util-flow-rate.c.
References FlowRateConfig_::bytes, FlowRateStore_::dir, flow_rate_config, and FlowRateDirStore_::sum.
void FlowRateRegisterFlowStorage | ( | void | ) |
Definition at line 60 of file util-flow-rate.c.
Referenced by PostConfLoadedSetup().
void FlowRateRegisterTests | ( | void | ) |
Definition at line 619 of file util-flow-rate.c.
References UtRegisterTest().
bool FlowRateStorageEnabled | ( | void | ) |
Definition at line 97 of file util-flow-rate.c.
References g_flowrate_storage_id, and FlowStorageId::id.
FlowRateStore* FlowRateStoreInit | ( | void | ) |
Definition at line 102 of file util-flow-rate.c.
References FlowRateDirStore_::buf, FlowRateStore_::dir, FLOW_CHECK_MEMCAP, flow_rate_config, FlowRateConfig_::interval, SCCalloc, SCTime_t::secs, FlowRateDirStore_::size, and unlikely.
void FlowRateStoreUpdate | ( | FlowRateStore * | , |
SCTime_t | , | ||
uint32_t | , | ||
int | |||
) |
Definition at line 191 of file util-flow-rate.c.
References DEBUG_VALIDATE_BUG_ON, FlowRateStore_::dir, FlowRateDirStore_::last_idx, FlowRateDirStore_::last_ts, SCTime_t::secs, FlowRateDirStore_::size, FlowRateDirStore_::start_ts, and FlowRateDirStore_::sum.
FlowRateConfig flow_rate_config |
Definition at line 39 of file util-flow-rate.c.
Referenced by FlowRateIsExceeding(), and FlowRateStoreInit().