suricata
source-pfring.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PfringIfaceConfig_
 
struct  PfringPacketVars_
 per packet Pfring vars More...
 

Macros

#define PFRING_IFACE_NAME_LENGTH   48
 
#define PFRING_CONF_FLAGS_CLUSTER   (1 << 0)
 
#define PFRING_CONF_FLAGS_BYPASS   (1 << 1)
 
#define CLUSTER_FLOW   0
 
#define CLUSTER_ROUND_ROBIN   1
 
#define CLUSTER_FLOW_5_TUPLE   4
 
#define CLUSTER_INNER_FLOW   6
 
#define CLUSTER_INNER_FLOW_2_TUPLE   7
 
#define CLUSTER_INNER_FLOW_4_TUPLE   8
 
#define CLUSTER_INNER_FLOW_5_TUPLE   9
 

Typedefs

typedef struct PfringThreadVars_ PfringThreadVars
 
typedef struct PfringIfaceConfig_ PfringIfaceConfig
 
typedef struct PfringPacketVars_ PfringPacketVars
 per packet Pfring vars More...
 

Functions

void TmModuleReceivePfringRegister (void)
 Registration Function for ReceivePfring. More...
 
void TmModuleDecodePfringRegister (void)
 Registration Function for DecodePfring. More...
 
int PfringConfGetThreads (void)
 
void PfringLoadConfig (void)
 

Detailed Description

Macro Definition Documentation

◆ CLUSTER_FLOW

#define CLUSTER_FLOW   0

Definition at line 78 of file source-pfring.h.

◆ CLUSTER_FLOW_5_TUPLE

#define CLUSTER_FLOW_5_TUPLE   4

Definition at line 80 of file source-pfring.h.

◆ CLUSTER_INNER_FLOW

#define CLUSTER_INNER_FLOW   6

Definition at line 81 of file source-pfring.h.

◆ CLUSTER_INNER_FLOW_2_TUPLE

#define CLUSTER_INNER_FLOW_2_TUPLE   7

Definition at line 82 of file source-pfring.h.

◆ CLUSTER_INNER_FLOW_4_TUPLE

#define CLUSTER_INNER_FLOW_4_TUPLE   8

Definition at line 83 of file source-pfring.h.

◆ CLUSTER_INNER_FLOW_5_TUPLE

#define CLUSTER_INNER_FLOW_5_TUPLE   9

Definition at line 84 of file source-pfring.h.

◆ CLUSTER_ROUND_ROBIN

#define CLUSTER_ROUND_ROBIN   1

Definition at line 79 of file source-pfring.h.

◆ PFRING_CONF_FLAGS_BYPASS

#define PFRING_CONF_FLAGS_BYPASS   (1 << 1)

Definition at line 34 of file source-pfring.h.

◆ PFRING_CONF_FLAGS_CLUSTER

#define PFRING_CONF_FLAGS_CLUSTER   (1 << 0)

Definition at line 33 of file source-pfring.h.

◆ PFRING_IFACE_NAME_LENGTH

#define PFRING_IFACE_NAME_LENGTH   48

Definition at line 28 of file source-pfring.h.

Typedef Documentation

◆ PfringIfaceConfig

◆ PfringPacketVars

per packet Pfring vars

This structure is used to pass packet metadata in callbacks.

◆ PfringThreadVars

Definition at line 1 of file source-pfring.h.

Function Documentation

◆ PfringConfGetThreads()

int PfringConfGetThreads ( void  )

◆ PfringLoadConfig()

void PfringLoadConfig ( void  )

◆ TmModuleDecodePfringRegister()

void TmModuleDecodePfringRegister ( void  )

Registration Function for DecodePfring.

Todo:
Unit tests are needed for this module.

Definition at line 179 of file source-pfring.c.

References DecodePfring(), DecodePfringThreadDeinit(), DecodePfringThreadInit(), TmModule_::flags, TmModule_::Func, TmModule_::name, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_DECODE_TM, TMM_DECODEPFRING, and tmm_modules.

Referenced by RegisterAllModules().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TmModuleReceivePfringRegister()

void TmModuleReceivePfringRegister ( void  )

Registration Function for ReceivePfring.

Todo:
Unit tests are needed for this module.

Definition at line 163 of file source-pfring.c.

References TmModule_::flags, TmModule_::Func, TmModule_::name, PfringBreakLoop(), TmModule_::PktAcqBreakLoop, TmModule_::PktAcqLoop, ReceivePfringLoop(), ReceivePfringThreadDeinit(), ReceivePfringThreadExitStats(), ReceivePfringThreadInit(), TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_RECEIVE_TM, tmm_modules, and TMM_RECEIVEPFRING.

Referenced by RegisterAllModules().

Here is the call graph for this function:
Here is the caller graph for this function: