suricata
source-pcap-file.c File Reference
Include dependency graph for source-pcap-file.c:

Go to the source code of this file.

Data Structures

union  PcapFileBehaviorVar_
 
struct  PcapFileThreadVars_
 

Typedefs

typedef union PcapFileBehaviorVar_ PcapFileBehaviorVar
 
typedef struct PcapFileThreadVars_ PcapFileThreadVars
 

Functions

void TmModuleReceivePcapFileRegister (void)
 
void TmModuleDecodePcapFileRegister (void)
 
void PcapFileGlobalInit ()
 
void PcapIncreaseInvalidChecksum ()
 

Variables

int max_pending_packets
 
PcapFileGlobalVars pcap_g
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

File based pcap packet acquisition support

Definition in file source-pcap-file.c.

Typedef Documentation

◆ PcapFileBehaviorVar

Union determining whether the behavior of the thread is file or directory

◆ PcapFileThreadVars

Data specific to the thread

Function Documentation

◆ PcapFileGlobalInit()

void PcapFileGlobalInit ( )

Definition at line 138 of file source-pcap-file.c.

References pcap_g, and SC_ATOMIC_INIT.

Referenced by RunModeFilePcapAutoFp(), and RunModeFilePcapSingle().

Here is the caller graph for this function:

◆ PcapIncreaseInvalidChecksum()

void PcapIncreaseInvalidChecksum ( )

Definition at line 449 of file source-pcap-file.c.

References pcap_g, and SC_ATOMIC_ADD.

◆ TmModuleDecodePcapFileRegister()

void TmModuleDecodePcapFileRegister ( void  )

Definition at line 126 of file source-pcap-file.c.

References TmModule_::name, TmModule_::ThreadInit, TMM_DECODEPCAPFILE, and tmm_modules.

Referenced by RegisterAllModules().

Here is the caller graph for this function:

◆ TmModuleReceivePcapFileRegister()

void TmModuleReceivePcapFileRegister ( void  )

Pcap File Functionality

Definition at line 112 of file source-pcap-file.c.

References TmModule_::name, TmModule_::ThreadInit, tmm_modules, and TMM_RECEIVEPCAPFILE.

Referenced by RegisterAllModules().

Here is the caller graph for this function:

Variable Documentation

◆ pcap_g

Definition at line 34 of file source-pcap-file.c.

Referenced by PcapFileGlobalInit(), and PcapIncreaseInvalidChecksum().