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

Go to the source code of this file.

Data Structures

struct  PcapPacketVars_
 
struct  PcapIfaceConfig_
 

Macros

#define LIBPCAP_COPYWAIT   500
 
#define LIBPCAP_PROMISC   1
 
#define PCAP_IFACE_NAME_LENGTH   128
 

Typedefs

typedef struct PcapPacketVars_ PcapPacketVars
 
typedef struct PcapIfaceConfig_ PcapIfaceConfig
 

Functions

void TmModuleReceivePcapRegister (void)
 Registration Function for ReceivePcap. More...
 
void TmModuleDecodePcapRegister (void)
 Registration Function for DecodePcap. More...
 
void PcapTranslateIPToDevice (char *pcap_dev, size_t len)
 

Detailed Description

Macro Definition Documentation

◆ LIBPCAP_COPYWAIT

#define LIBPCAP_COPYWAIT   500

Definition at line 32 of file source-pcap.h.

◆ LIBPCAP_PROMISC

#define LIBPCAP_PROMISC   1

Definition at line 33 of file source-pcap.h.

◆ PCAP_IFACE_NAME_LENGTH

#define PCAP_IFACE_NAME_LENGTH   128

needs to be able to contain Windows adapter id's, so must be quite long.

Definition at line 43 of file source-pcap.h.

Typedef Documentation

◆ PcapIfaceConfig

◆ PcapPacketVars

Function Documentation

◆ PcapTranslateIPToDevice()

void PcapTranslateIPToDevice ( char *  pcap_dev,
size_t  len 
)

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

References len, and strlcpy().

Here is the call graph for this function:

◆ TmModuleDecodePcapRegister()

void TmModuleDecodePcapRegister ( void  )

Registration Function for DecodePcap.

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

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

Referenced by RegisterAllModules().

Here is the caller graph for this function:

◆ TmModuleReceivePcapRegister()

void TmModuleReceivePcapRegister ( void  )

Registration Function for ReceivePcap.

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

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

Referenced by RegisterAllModules().

Here is the caller graph for this function: