suricata
|
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) |
Definition in file runmode-af-packet.h.
int AFPRunModeIsIPS | ( | void | ) |
Definition at line 720 of file runmode-af-packet.c.
References ConfFindDeviceConfig(), ConfGetChildValueWithDefault(), ConfGetNode(), ConfNodeLookupKeyValue(), LiveGetDeviceCount(), LiveGetDeviceName(), SC_ERR_INVALID_ARGUMENT, SC_ERR_INVALID_VALUE, SCLogError, and SCLogInfo.
const char* RunModeAFPGetDefaultMode | ( | void | ) |
Definition at line 62 of file runmode-af-packet.c.
Referenced by RunModeDispatch().
int RunModeIdsAFPAutoFp | ( | void | ) |
Definition at line 801 of file runmode-af-packet.c.
References AFPPeersListInit(), ConfGet(), FatalError, RunModeInitialize(), RunModeSetLiveCaptureAutoFp(), SC_ERR_FATAL, SCEnter, SCLogDebug, TimeModeSetLive(), and TM_ECODE_OK.
Referenced by RunModeIdsAFPRegister().
void RunModeIdsAFPRegister | ( | void | ) |
Definition at line 67 of file runmode-af-packet.c.
References RUNMODE_AFP_DEV, RunModeIdsAFPAutoFp(), RunModeIdsAFPSingle(), RunModeIdsAFPWorkers(), and RunModeRegisterNewRunMode().
int RunModeIdsAFPSingle | ( | void | ) |
Single thread version of the AF_PACKET processing.
Definition at line 845 of file runmode-af-packet.c.
References AFPPeersListInit(), ConfGet(), FatalError, RunModeInitialize(), RunModeSetLiveCaptureSingle(), SC_ERR_FATAL, 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 887 of file runmode-af-packet.c.
References AFPPeersListInit(), ConfGet(), FatalError, RunModeInitialize(), RunModeSetLiveCaptureWorkers(), SC_ERR_FATAL, SCEnter, TimeModeSetLive(), and TM_ECODE_OK.
Referenced by RunModeIdsAFPRegister().