suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "tm-threads.h"
#include "conf.h"
#include "runmodes.h"
#include "runmode-af-packet.h"
#include "output.h"
#include "log-httplog.h"
#include "detect-engine-mpm.h"
#include "alert-fastlog.h"
#include "alert-debuglog.h"
#include "flow-bypass.h"
#include "util-conf.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 "util-ebpf.h"
#include "util-byte.h"
#include "source-af-packet.h"
#include "util-bpf.h"
Go to the source code of this file.
uint32_t | max_pending_packets |
const char * | RunModeAFPGetDefaultMode (void) |
void | RunModeIdsAFPRegister (void) |
int | RunModeIdsAFPAutoFp (void) |
int | RunModeIdsAFPSingle (void) |
Single thread version of the AF_PACKET processing. More... | |
int | RunModeIdsAFPWorkers (void) |
Workers version of the AF_PACKET processing. More... | |
AF_PACKET socket runmode
Definition in file runmode-af-packet.c.
const char* RunModeAFPGetDefaultMode | ( | void | ) |
Definition at line 64 of file runmode-af-packet.c.
int RunModeIdsAFPAutoFp | ( | void | ) |
Definition at line 738 of file runmode-af-packet.c.
References AFPPeersListInit(), ConfGet(), FatalError, RunModeSetLiveCaptureAutoFp(), SCEnter, SCLogDebug, TimeModeSetLive(), and TM_ECODE_OK.
void RunModeIdsAFPRegister | ( | void | ) |
Definition at line 136 of file runmode-af-packet.c.
References RUNMODE_AFP_DEV, RunModeIdsAFPSingle(), and RunModeRegisterNewRunMode().
int RunModeIdsAFPSingle | ( | void | ) |
Single thread version of the AF_PACKET processing.
Definition at line 777 of file runmode-af-packet.c.
References AFPPeersListInit(), ConfGet(), FatalError, RunModeSetLiveCaptureSingle(), SCEnter, TimeModeSetLive(), and TM_ECODE_OK.
Referenced by RunModeIdsAFPRegister().
int RunModeIdsAFPWorkers | ( | void | ) |
Workers version of the AF_PACKET processing.
Start N threads with each thread doing all the work.
Definition at line 818 of file runmode-af-packet.c.
References AFPPeersListInit(), ConfGet(), FatalError, RunModeSetLiveCaptureWorkers(), SCEnter, TimeModeSetLive(), and TM_ECODE_OK.
uint32_t max_pending_packets |
Maximum packets to simultaneously process.
Definition at line 180 of file suricata.c.