suricata
runmode-af-packet.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int RunModeIdsAFPSingle (void)
 Single thread version of the AF_PACKET processing. More...
 
int RunModeIdsAFPAutoFp (void)
 
int RunModeIdsAFPWorkers (void)
 Workers version of the AF_PACKET processing. More...
 
void RunModeIdsAFPRegister (void)
 
const char * RunModeAFPGetDefaultMode (void)
 
int AFPRunModeIsIPS (void)
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Definition in file runmode-af-packet.h.

Function Documentation

◆ AFPRunModeIsIPS()

◆ RunModeAFPGetDefaultMode()

const char* RunModeAFPGetDefaultMode ( void  )

Definition at line 62 of file runmode-af-packet.c.

Referenced by RunModeDispatch().

Here is the caller graph for this function:

◆ RunModeIdsAFPAutoFp()

int RunModeIdsAFPAutoFp ( void  )

Definition at line 792 of file runmode-af-packet.c.

References AFPPeersListInit(), ConfGet(), RunModeInitialize(), RunModeSetLiveCaptureAutoFp(), SC_ERR_RUNMODE, SCEnter, SCLogDebug, SCLogError, TimeModeSetLive(), and TM_ECODE_OK.

Referenced by RunModeIdsAFPRegister().

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

◆ RunModeIdsAFPRegister()

void RunModeIdsAFPRegister ( void  )

Definition at line 67 of file runmode-af-packet.c.

References RUNMODE_AFP_DEV, RunModeIdsAFPAutoFp(), RunModeIdsAFPSingle(), RunModeIdsAFPWorkers(), and RunModeRegisterNewRunMode().

Here is the call graph for this function:

◆ RunModeIdsAFPSingle()

int RunModeIdsAFPSingle ( void  )

Single thread version of the AF_PACKET processing.

Definition at line 839 of file runmode-af-packet.c.

References AFPPeersListInit(), ConfGet(), RunModeInitialize(), RunModeSetLiveCaptureSingle(), SC_ERR_RUNMODE, SCEnter, SCLogError, TimeModeSetLive(), and TM_ECODE_OK.

Referenced by RunModeIdsAFPRegister().

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

◆ RunModeIdsAFPWorkers()

int RunModeIdsAFPWorkers ( void  )

Workers version of the AF_PACKET processing.

Start N threads with each thread doing all the work.

Definition at line 884 of file runmode-af-packet.c.

References AFPPeersListInit(), ConfGet(), RunModeInitialize(), RunModeSetLiveCaptureWorkers(), SC_ERR_RUNMODE, SCEnter, SCLogError, TimeModeSetLive(), and TM_ECODE_OK.

Referenced by RunModeIdsAFPRegister().

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