|
suricata
|

Go to the source code of this file.
Typedefs | |
| typedef void *(* | ConfigIfaceParserFunc) (const char *) |
| typedef void *(* | ConfigIPSParserFunc) (int) |
| typedef uint16_t(* | ConfigIfaceThreadsCountFunc) (void *) |
Functions | |
| int | RunModeSetLiveCaptureAuto (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev) |
| int | RunModeSetLiveCaptureAutoFp (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev) |
| int | RunModeSetLiveCaptureSingle (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev) |
| int | RunModeSetLiveCaptureWorkers (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev) |
| int | RunModeSetIPSAutoFp (ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name) |
| int | RunModeSetIPSWorker (ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name) |
| char * | RunmodeAutoFpCreatePickupQueuesString (int n) |
| create a queue string for autofp to pass to the flow queue handler. More... | |
Definition in file util-runmodes.h.
| typedef void*(* ConfigIfaceParserFunc) (const char *) |
Definition at line 26 of file util-runmodes.h.
| typedef uint16_t(* ConfigIfaceThreadsCountFunc) (void *) |
Definition at line 28 of file util-runmodes.h.
| typedef void*(* ConfigIPSParserFunc) (int) |
Definition at line 27 of file util-runmodes.h.
| char* RunmodeAutoFpCreatePickupQueuesString | ( | int | n | ) |
create a queue string for autofp to pass to the flow queue handler.
The string will be "pickup1,pickup2,pickup3\0"
Definition at line 58 of file util-runmodes.c.
References SCCalloc, SCLogDebug, SCLogError, strlcat(), TM_QUEUE_NAME_MAX, and unlikely.
Referenced by RunModeErfFileAutoFp(), RunModeFilePcapAutoFp(), RunModeSetIPSAutoFp(), and RunModeSetLiveCaptureAutoFp().


| int RunModeSetIPSAutoFp | ( | ConfigIPSParserFunc | ConfigParser, |
| const char * | recv_mod_name, | ||
| const char * | verdict_mod_name, | ||
| const char * | decode_mod_name | ||
| ) |
Definition at line 386 of file util-runmodes.c.
References FatalError, LiveGetDeviceCount(), LiveGetDeviceName(), RECEIVE_CPU_SET, RunmodeAutoFpCreatePickupQueuesString(), SCEnter, SCFree, SCLogDebug, thread_name_autofp, thread_name_verdict, thread_name_workers, TM_ECODE_OK, TM_QUEUE_NAME_MAX, TM_THREAD_NAME_MAX, TmModuleGetByName(), TmSlotSetFuncAppend(), TmThreadCreatePacketHandler(), TmThreadSetCPU(), TmThreadSetGroupName(), TmThreadsGetWorkerThreadMax(), TmThreadSpawn(), VERDICT_CPU_SET, and WORKER_CPU_SET.
Referenced by RunModeIpsIPFWAutoFp(), RunModeIpsNFQAutoFp(), and RunModeIpsWinDivertAutoFp().


| int RunModeSetIPSWorker | ( | ConfigIPSParserFunc | ConfigParser, |
| const char * | recv_mod_name, | ||
| const char * | verdict_mod_name, | ||
| const char * | decode_mod_name | ||
| ) |
Definition at line 507 of file util-runmodes.c.
References FatalError, LiveGetDeviceCount(), LiveGetDeviceName(), thread_name_workers, TM_ECODE_OK, TM_THREAD_NAME_MAX, TmModuleGetByName(), TmSlotSetFuncAppend(), TmThreadCreatePacketHandler(), TmThreadSetCPU(), TmThreadSpawn(), tv, and WORKER_CPU_SET.
Referenced by RunModeIpsIPFWWorker(), and RunModeIpsNFQWorker().


| int RunModeSetLiveCaptureAuto | ( | ConfigIfaceParserFunc | configparser, |
| ConfigIfaceThreadsCountFunc | ModThreadsCount, | ||
| const char * | recv_mod_name, | ||
| const char * | decode_mod_name, | ||
| const char * | thread_name, | ||
| const char * | live_dev | ||
| ) |
| int RunModeSetLiveCaptureAutoFp | ( | ConfigIfaceParserFunc | configparser, |
| ConfigIfaceThreadsCountFunc | ModThreadsCount, | ||
| const char * | recv_mod_name, | ||
| const char * | decode_mod_name, | ||
| const char * | thread_name, | ||
| const char * | live_dev | ||
| ) |
Definition at line 87 of file util-runmodes.c.
References FatalError, ThreadVars_::iface_name, LiveGetDeviceCount(), LiveGetDeviceName(), LiveGetShortName(), MIN, ThreadVars_::printable_name, RECEIVE_CPU_SET, RunmodeAutoFpCreatePickupQueuesString(), SCFree, SCLogDebug, SCLogInfo, SCMalloc, SCStrdup, thread_name_workers, THREADS_MAX, TM_ECODE_OK, TM_QUEUE_NAME_MAX, TM_THREAD_NAME_MAX, TmModuleGetByName(), TmSlotSetFuncAppend(), TmThreadCreatePacketHandler(), TmThreadSetCPU(), TmThreadSetGroupName(), TmThreadsGetWorkerThreadMax(), TmThreadSpawn(), unlikely, and WORKER_CPU_SET.
Referenced by RunModeIdsAFPAutoFp(), RunModeIdsErfDagAutoFp(), and RunModeIdsPcapAutoFp().


| int RunModeSetLiveCaptureSingle | ( | ConfigIfaceParserFunc | configparser, |
| ConfigIfaceThreadsCountFunc | ModThreadsCount, | ||
| const char * | recv_mod_name, | ||
| const char * | decode_mod_name, | ||
| const char * | thread_name, | ||
| const char * | live_dev | ||
| ) |
Definition at line 357 of file util-runmodes.c.
References FatalError, LiveGetDeviceCount(), and LiveGetDeviceName().
Referenced by RunModeIdsAFPSingle(), RunModeIdsAFXDPSingle(), RunModeIdsErfDagSingle(), and RunModeIdsPcapSingle().


| int RunModeSetLiveCaptureWorkers | ( | ConfigIfaceParserFunc | configparser, |
| ConfigIfaceThreadsCountFunc | ModThreadsCount, | ||
| const char * | recv_mod_name, | ||
| const char * | decode_mod_name, | ||
| const char * | thread_name, | ||
| const char * | live_dev | ||
| ) |
Definition at line 333 of file util-runmodes.c.
References LiveGetDeviceCount(), and LiveGetDeviceName().
Referenced by RunModeIdsAFPWorkers(), RunModeIdsAFXDPWorkers(), RunModeIdsDpdkWorkers(), RunModeIdsErfDagWorkers(), and RunModeIdsPcapWorkers().

