suricata
flow-bypass.c File Reference
#include "suricata-common.h"
#include "tm-threads.h"
#include "flow.h"
#include "flow-bypass.h"
#include "flow-private.h"
#include "util-ebpf.h"
Include dependency graph for flow-bypass.c:

Go to the source code of this file.

Data Structures

struct  BypassedFlowManagerThreadData_
 

Macros

#define FLOW_BYPASS_DELAY   10
 
#define BYPASSFUNCMAX   4
 

Typedefs

typedef struct BypassedFlowManagerThreadData_ BypassedFlowManagerThreadData
 

Functions

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

Variables

int g_bypassed_func_max_index = 0
 
BypassedCheckFunc BypassedFuncList [BYPASSFUNCMAX]
 
int g_bypassed_update_max_index = 0
 
BypassedUpdateFunc UpdateFuncList [BYPASSFUNCMAX]
 

Detailed Description

Macro Definition Documentation

#define BYPASSFUNCMAX   4
#define FLOW_BYPASS_DELAY   10

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

Typedef Documentation

Function Documentation

int BypassedFlowManagerRegisterCheckFunc ( BypassedCheckFunc  CheckFunc)

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

References BypassedFuncList, BYPASSFUNCMAX, and g_bypassed_func_max_index.

Referenced by RunModeIdsAFPRegister().

Here is the caller graph for this function:

int BypassedFlowManagerRegisterUpdateFunc ( BypassedUpdateFunc  UpdateFunc)

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

References BYPASSFUNCMAX, g_bypassed_update_max_index, and UpdateFuncList.

Referenced by RunModeIdsAFPRegister().

Here is the caller graph for this function:

void BypassedFlowManagerThreadSpawn ( void  )

spawn the flow manager thread

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

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

Referenced by RunModeDispatch().

Here is the call graph for this function:

Here is the caller graph for this function:

void BypassedFlowUpdate ( Flow f,
Packet p 
)
void TmModuleBypassedFlowManagerRegister ( void  )

Variable Documentation

BypassedCheckFunc BypassedFuncList[BYPASSFUNCMAX]

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

Referenced by BypassedFlowManagerRegisterCheckFunc().

int g_bypassed_func_max_index = 0

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

Referenced by BypassedFlowManagerRegisterCheckFunc().

int g_bypassed_update_max_index = 0

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

Referenced by BypassedFlowManagerRegisterUpdateFunc(), and BypassedFlowUpdate().

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

Referenced by BypassedFlowManagerRegisterUpdateFunc(), and BypassedFlowUpdate().