suricata
flow-bypass.h File Reference
#include "flow.h"
Include dependency graph for flow-bypass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  flows_stats
 

Typedefs

typedef int(* BypassedCheckFunc) (ThreadVars *th_v, struct flows_stats *bypassstats, struct timespec *curtime, void *data)
 
typedef int(* BypassedCheckFuncInit) (ThreadVars *th_v, struct timespec *curtime, void *data)
 
typedef int(* BypassedUpdateFunc) (Flow *f, Packet *p, void *data)
 

Functions

void BypassedFlowManagerThreadSpawn (void)
 spawn the flow bypass manager thread More...
 
void TmModuleBypassedFlowManagerRegister (void)
 
int BypassedFlowManagerRegisterCheckFunc (BypassedCheckFunc CheckFunc, BypassedCheckFuncInit CheckFuncInit, void *data)
 
int BypassedFlowManagerRegisterUpdateFunc (BypassedUpdateFunc UpdateFunc, void *data)
 
void BypassedFlowUpdate (Flow *f, Packet *p)
 

Detailed Description

Typedef Documentation

◆ BypassedCheckFunc

typedef int(* BypassedCheckFunc) (ThreadVars *th_v, struct flows_stats *bypassstats, struct timespec *curtime, void *data)

Definition at line 35 of file flow-bypass.h.

◆ BypassedCheckFuncInit

typedef int(* BypassedCheckFuncInit) (ThreadVars *th_v, struct timespec *curtime, void *data)

Definition at line 38 of file flow-bypass.h.

◆ BypassedUpdateFunc

typedef int(* BypassedUpdateFunc) (Flow *f, Packet *p, void *data)

Definition at line 40 of file flow-bypass.h.

Function Documentation

◆ BypassedFlowManagerRegisterCheckFunc()

int BypassedFlowManagerRegisterCheckFunc ( BypassedCheckFunc  CheckFunc,
BypassedCheckFuncInit  CheckFuncInit,
void *  data 
)

◆ BypassedFlowManagerRegisterUpdateFunc()

int BypassedFlowManagerRegisterUpdateFunc ( BypassedUpdateFunc  UpdateFunc,
void *  data 
)

◆ BypassedFlowManagerThreadSpawn()

void BypassedFlowManagerThreadSpawn ( void  )

spawn the flow bypass manager thread

Definition at line 191 of file flow-bypass.c.

References BUG_ON, thread_name_flow_bypass, TM_ECODE_OK, TmThreadCreateMgmtThreadByName(), and TmThreadSpawn().

Here is the call graph for this function:

◆ BypassedFlowUpdate()

void BypassedFlowUpdate ( Flow f,
Packet p 
)

Definition at line 211 of file flow-bypass.c.

Referenced by FlowHandlePacketUpdate().

Here is the caller graph for this function:

◆ TmModuleBypassedFlowManagerRegister()

void TmModuleBypassedFlowManagerRegister ( void  )