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

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

Data specific to the thread

Function Documentation

void PcapFileGlobalInit ( void  )

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

References PcapFileThreadVars_::behavior, PcapFileSharedVars_::bpf_string, BUG_ON, PcapFileSharedVars_::bytes, PcapFileSharedVars_::cb_result, CHECKSUM_INVALID_RATIO, PcapFileGlobalVars_::checksum_mode, CHECKSUM_SAMPLE_COUNT, CHECKSUM_VALIDATION_AUTO, CHECKSUM_VALIDATION_DISABLE, CHECKSUM_VALIDATION_ENABLE, CleanupPcapFileDirectoryVars(), CleanupPcapFileFileVars(), PcapFileGlobalVars_::cnt, PcapFileGlobalVars_::conf_checksum_mode, ConfGet(), ConfGetBool(), ConfGetInt(), ConfValIsFalse(), ConfValIsTrue(), Packet_::datalink, DecodeRegisterPerfCounters(), DecodeThreadVarsAlloc(), DecodeThreadVarsFree(), DecodeUpdatePacketCounters(), PcapFileDirectoryVars_::delay, PcapFileBehaviorVar_::directory, PcapFileDirectoryVars_::directory, EngineStop(), PcapFileBehaviorVar_::file, PcapFileDirectoryVars_::filename, PcapFileFileVars_::filename, PcapFileSharedVars_::files, Packet_::flags, FlowWakeupFlowManagerThread, GET_PKT_DATA, GET_PKT_LEN, InitPcapFile(), PcapFileThreadVars_::is_directory, PcapFileSharedVars_::last_processed, PacketDecodeFinalize(), PcapDetermineDirectoryOrFile(), PcapDirectoryDispatch(), PcapFileDispatch(), PKT_PSEUDO_STREAM_END, Packet_::pkt_src, PKT_SRC_FFR, PKT_SRC_WIRE, PcapFileSharedVars_::pkts, PcapFileDirectoryVars_::poll_interval, RunModeUnixSocketIsActive(), SC_ATOMIC_GET, SC_ATOMIC_INIT, SC_ERR_INVALID_ARGUMENT, SC_ERR_INVALID_CHECKSUM, SC_ERR_MEM_ALLOC, SC_ERR_PCAP_DISPATCH, SCEnter, SCLogDebug, SCLogError, SCLogInfo, SCLogNotice, SCLogWarning, SCMalloc, SCReturnInt, SCStrdup, PcapFileDirectoryVars_::shared, PcapFileThreadVars_::shared, PcapFileFileVars_::shared, PcapFileSharedVars_::should_delete, PcapFileDirectoryVars_::should_loop, PcapFileSharedVars_::slot, TmSlot_::slot_next, TAILQ_INIT, PcapFileSharedVars_::tenant_id, TM_ECODE_DONE, TM_ECODE_FAILED, TM_ECODE_OK, Packet_::ts, PcapFileSharedVars_::tv, UnixSocketPcapFile(), unlikely, and ValidateLinkType().

Referenced by RunModeFilePcapAutoFp(), and RunModeFilePcapSingle().

Here is the call graph for this function:

Here is the caller graph for this function:

void PcapIncreaseInvalidChecksum ( void  )

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

References SC_ATOMIC_ADD.

Referenced by StreamTcpPacket().

Here is the caller graph for this function:

void TmModuleDecodePcapFileRegister ( void  )
void TmModuleReceivePcapFileRegister ( void  )

Variable Documentation

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