suricata
runmode-netmap.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "runmodes.h"
#include "runmode-netmap.h"
#include "util-runmodes.h"
#include "util-ioctl.h"
#include "util-byte.h"
#include "util-time.h"
#include "source-netmap.h"
#include "util-conf.h"
#include "suricata.h"
Include dependency graph for runmode-netmap.c:

Go to the source code of this file.

int max_pending_packets
 
const char * RunModeNetmapGetDefaultMode (void)
 
void RunModeIdsNetmapRegister (void)
 
int RunModeIdsNetmapAutoFp (void)
 
int RunModeIdsNetmapSingle (void)
 Single thread version of the netmap processing. More...
 
int RunModeIdsNetmapWorkers (void)
 Workers version of the netmap processing. More...
 

Detailed Description

Function Documentation

◆ RunModeIdsNetmapAutoFp()

int RunModeIdsNetmapAutoFp ( void  )

Definition at line 474 of file runmode-netmap.c.

References FatalError, SCEnter, and SCReturnInt.

◆ RunModeIdsNetmapRegister()

void RunModeIdsNetmapRegister ( void  )

Definition at line 146 of file runmode-netmap.c.

References RUNMODE_NETMAP, RunModeIdsNetmapSingle(), and RunModeRegisterNewRunMode().

Here is the call graph for this function:

◆ RunModeIdsNetmapSingle()

int RunModeIdsNetmapSingle ( void  )

Single thread version of the netmap processing.

Definition at line 484 of file runmode-netmap.c.

References FatalError, SCEnter, and SCReturnInt.

Referenced by RunModeIdsNetmapRegister().

Here is the caller graph for this function:

◆ RunModeIdsNetmapWorkers()

int RunModeIdsNetmapWorkers ( void  )

Workers version of the netmap processing.

Start N threads with each thread doing all the work.

Definition at line 497 of file runmode-netmap.c.

References FatalError, SCEnter, and SCReturnInt.

◆ RunModeNetmapGetDefaultMode()

const char* RunModeNetmapGetDefaultMode ( void  )

Definition at line 54 of file runmode-netmap.c.

Variable Documentation

◆ max_pending_packets

int max_pending_packets

Maximum packets to simultaneously process.

Definition at line 178 of file suricata.c.