suricata
runmode-pcap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int RunModeIdsPcapSingle (void)
 Single thread version of the Pcap live processing. More...
 
int RunModeIdsPcapAutoFp (void)
 RunModIdsPcapAutoFp set up the following thread packet handlers: More...
 
void RunModeIdsPcapRegister (void)
 
const char * RunModeIdsGetDefaultMode (void)
 

Detailed Description

Function Documentation

const char* RunModeIdsGetDefaultMode ( void  )

Definition at line 35 of file runmode-pcap.c.

References RunModeIdsPcapWorkers().

Referenced by RunModeDispatch().

Here is the call graph for this function:

Here is the caller graph for this function:

int RunModeIdsPcapAutoFp ( void  )

RunModIdsPcapAutoFp set up the following thread packet handlers:

  • Receive thread (from pcap device)
  • Decode thread
  • Stream thread
  • Detect: If we have only 1 cpu, it will setup one Detect thread If we have more than one, it will setup num_cpus - 1 starting from the second cpu available.
  • Outputs thread By default the threads will use the first cpu available except the Detection threads if we have more than one cpu.
Return values
0If all goes well. (If any problem is detected the engine will exit()).

Definition at line 274 of file runmode-pcap.c.

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

Referenced by RunModeIdsPcapRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

int RunModeIdsPcapSingle ( void  )

Single thread version of the Pcap live processing.

Definition at line 232 of file runmode-pcap.c.

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

Referenced by RunModeIdsPcapRegister().

Here is the call graph for this function:

Here is the caller graph for this function: