suricata
util-flow-rate.c File Reference
#include "suricata-common.h"
#include "flow-storage.h"
#include "flow-util.h"
#include "flow-private.h"
#include "util-storage.h"
#include "conf.h"
#include "util-misc.h"
#include "util-byte.h"
#include "util-flow-rate.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
Include dependency graph for util-flow-rate.c:

Go to the source code of this file.

Functions

void FlowRateRegisterFlowStorage (void)
 
bool FlowRateStorageEnabled (void)
 
FlowRateStoreFlowRateStoreInit (void)
 
FlowStorageId FlowRateGetStorageID (void)
 
void FlowRateStoreUpdate (FlowRateStore *frs, SCTime_t p_ts, uint32_t pkt_len, int direction)
 
bool FlowRateIsExceeding (FlowRateStore *frs, int direction)
 
void FlowRateRegisterTests (void)
 

Variables

FlowStorageId g_flowrate_storage_id = { .id = -1 }
 
FlowRateConfig flow_rate_config
 

Detailed Description

Author
Shivani Bhardwaj shiva.nosp@m.ni@o.nosp@m.isf.n.nosp@m.et

Definition in file util-flow-rate.c.

Function Documentation

◆ FlowRateGetStorageID()

FlowStorageId FlowRateGetStorageID ( void  )

Definition at line 134 of file util-flow-rate.c.

References g_flowrate_storage_id.

◆ FlowRateIsExceeding()

bool FlowRateIsExceeding ( FlowRateStore frs,
int  direction 
)

◆ FlowRateRegisterFlowStorage()

void FlowRateRegisterFlowStorage ( void  )

Definition at line 60 of file util-flow-rate.c.

Referenced by PostConfLoadedSetup().

Here is the caller graph for this function:

◆ FlowRateRegisterTests()

void FlowRateRegisterTests ( void  )

Definition at line 619 of file util-flow-rate.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ FlowRateStorageEnabled()

bool FlowRateStorageEnabled ( void  )

Definition at line 97 of file util-flow-rate.c.

References g_flowrate_storage_id, and FlowStorageId::id.

◆ FlowRateStoreInit()

◆ FlowRateStoreUpdate()

void FlowRateStoreUpdate ( FlowRateStore frs,
SCTime_t  p_ts,
uint32_t  pkt_len,
int  direction 
)

Variable Documentation

◆ flow_rate_config

FlowRateConfig flow_rate_config

Definition at line 39 of file util-flow-rate.c.

Referenced by FlowRateIsExceeding(), and FlowRateStoreInit().

◆ g_flowrate_storage_id

FlowStorageId g_flowrate_storage_id = { .id = -1 }

Definition at line 37 of file util-flow-rate.c.

Referenced by FlowRateGetStorageID(), and FlowRateStorageEnabled().