suricata
runmode-netmap.c File Reference
#include "suricata-common.h"
#include "config.h"
#include "tm-threads.h"
#include "conf.h"
#include "runmodes.h"
#include "runmode-netmap.h"
#include "output.h"
#include "log-httplog.h"
#include "detect-engine-mpm.h"
#include "alert-fastlog.h"
#include "alert-prelude.h"
#include "alert-unified2-alert.h"
#include "alert-debuglog.h"
#include "util-debug.h"
#include "util-time.h"
#include "util-cpu.h"
#include "util-affinity.h"
#include "util-device.h"
#include "util-runmodes.h"
#include "util-ioctl.h"
#include "source-netmap.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

Author
Aleksey Katargin guree.nosp@m.do@g.nosp@m.mail..nosp@m.com

Netmap runmode

Definition in file runmode-netmap.c.

Function Documentation

int RunModeIdsNetmapAutoFp ( void  )

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

References ConfGet(), RunModeInitialize(), RunModeSetLiveCaptureAutoFp(), SC_ERR_RUNMODE, SCEnter, SCLogDebug, SCLogError, SCReturnInt, thread_name_autofp, and TimeModeSetLive().

Referenced by RunModeIdsNetmapRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void RunModeIdsNetmapRegister ( void  )
int RunModeIdsNetmapSingle ( void  )

Single thread version of the netmap processing.

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

References ConfGet(), RunModeInitialize(), RunModeSetLiveCaptureSingle(), SC_ERR_RUNMODE, SCEnter, SCLogDebug, SCLogError, SCReturnInt, thread_name_single, and TimeModeSetLive().

Referenced by RunModeIdsNetmapRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

int RunModeIdsNetmapWorkers ( void  )

Workers version of the netmap processing.

Start N threads with each thread doing all the work.

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

References ConfGet(), RunModeInitialize(), RunModeSetLiveCaptureWorkers(), SC_ERR_RUNMODE, SCEnter, SCLogDebug, SCLogError, SCReturnInt, thread_name_workers, and TimeModeSetLive().

Referenced by RunModeIdsNetmapRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* RunModeNetmapGetDefaultMode ( void  )

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

Referenced by RunModeDispatch().

Here is the caller graph for this function:

Variable Documentation

int max_pending_packets

Maximum packets to simultaneously process.

Definition at line 215 of file suricata.c.