suricata
|
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. | |
void | TmModuleDecodePcapRegister (void) |
Registration Function for DecodePcap. | |
void | PcapTranslateIPToDevice (char *pcap_dev, size_t len) |
Definition in file source-pcap.h.
#define LIBPCAP_COPYWAIT 500 |
Definition at line 31 of file source-pcap.h.
#define LIBPCAP_PROMISC 1 |
Definition at line 32 of file source-pcap.h.
#define PCAP_IFACE_NAME_LENGTH 128 |
needs to be able to contain Windows adapter id's, so must be quite long.
Definition at line 42 of file source-pcap.h.
typedef struct PcapIfaceConfig_ PcapIfaceConfig |
typedef struct PcapPacketVars_ PcapPacketVars |
void PcapTranslateIPToDevice | ( | char * | pcap_dev, |
size_t | len | ||
) |
Definition at line 656 of file source-pcap.c.
References len, and strlcpy().
void TmModuleDecodePcapRegister | ( | void | ) |
Registration Function for DecodePcap.
Definition at line 153 of file source-pcap.c.
References TmModule_::flags, TmModule_::Func, TmModule_::name, TmModule_::ThreadDeinit, TmModule_::ThreadInit, TM_FLAG_DECODE_TM, TMM_DECODEPCAP, and tmm_modules.
Referenced by RegisterAllModules().
void TmModuleReceivePcapRegister | ( | void | ) |
Registration Function for ReceivePcap.
Definition at line 135 of file source-pcap.c.
References TmModule_::cap_flags, TmModule_::flags, TmModule_::name, TmModule_::PktAcqBreakLoop, TmModule_::PktAcqLoop, TmModule_::RegisterTests, SC_CAP_NET_RAW, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_RECEIVE_TM, tmm_modules, and TMM_RECEIVEPCAP.
Referenced by RegisterAllModules().