suricata
PcapThreadVars_ Struct Reference

Structure to hold thread specific variables. More...

Collaboration diagram for PcapThreadVars_:

Data Fields

pcap_t * pcap_handle
 
unsigned char pcap_state
 
struct bpf_program filter
 
const char * bpf_filter
 
time_t last_stats_dump
 
int datalink
 
uint32_t pkts
 
uint64_t bytes
 
uint32_t errs
 
uint16_t capture_kernel_packets
 
uint16_t capture_kernel_drops
 
uint16_t capture_kernel_ifdrops
 
ThreadVarstv
 
TmSlotslot
 
int cb_result
 
int pcap_buffer_size
 
int pcap_snaplen
 
ChecksumValidationMode checksum_mode
 
LiveDevicelivedev
 

Detailed Description

Structure to hold thread specific variables.

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

Field Documentation

const char* PcapThreadVars_::bpf_filter

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

uint64_t PcapThreadVars_::bytes

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

Referenced by ReceivePcapThreadExitStats(), and TmModuleDecodePcapRegister().

uint16_t PcapThreadVars_::capture_kernel_drops

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

uint16_t PcapThreadVars_::capture_kernel_ifdrops

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

uint16_t PcapThreadVars_::capture_kernel_packets

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

int PcapThreadVars_::cb_result

callback result – set if one of the thread module failed.

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

Referenced by ReceivePcapLoop(), and TmModuleDecodePcapRegister().

ChecksumValidationMode PcapThreadVars_::checksum_mode

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

int PcapThreadVars_::datalink

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

uint32_t PcapThreadVars_::errs

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

struct bpf_program PcapThreadVars_::filter

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

time_t PcapThreadVars_::last_stats_dump

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

Referenced by TmModuleDecodePcapRegister().

LiveDevice* PcapThreadVars_::livedev

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

int PcapThreadVars_::pcap_buffer_size

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

Referenced by ReceivePcapThreadInit().

int PcapThreadVars_::pcap_snaplen

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

Referenced by ReceivePcapThreadInit().

unsigned char PcapThreadVars_::pcap_state

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().

uint32_t PcapThreadVars_::pkts

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

Referenced by ReceivePcapThreadExitStats(), and TmModuleDecodePcapRegister().

TmSlot* PcapThreadVars_::slot

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

Referenced by ReceivePcapLoop(), and TmModuleDecodePcapRegister().

ThreadVars* PcapThreadVars_::tv

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

Referenced by ReceivePcapThreadInit(), and TmModuleDecodePcapRegister().


The documentation for this struct was generated from the following file: