suricata
AFPThreadVars_ Struct Reference

Structure to hold thread specific variables. More...

Collaboration diagram for AFPThreadVars_:

Data Structures

union  AFPRing
 
union  AFPTpacketReq
 

Data Fields

union AFPThreadVars_::AFPRing ring
 
uint64_t pkts
 
ThreadVarstv
 
TmSlotslot
 
LiveDevicelivedev
 
uint32_t datalink
 
unsigned int frame_offset
 
ChecksumValidationMode checksum_mode
 
uint16_t capture_kernel_packets
 
uint16_t capture_kernel_drops
 
uint16_t capture_errors
 
uint8_t afp_state
 
uint8_t copy_mode
 
unsigned int flags
 
AFPPeermpeer
 
uint8_t * data
 
int datalen
 
int cooked
 
int socket
 
int ring_size
 
int block_size
 
int block_timeout
 
int buffer_size
 
const char * bpf_filter
 
int ebpf_lb_fd
 
int ebpf_filter_fd
 
int promisc
 
int down_count
 
int cluster_id
 
int cluster_type
 
int threads
 
union AFPThreadVars_::AFPTpacketReq req
 
char iface [AFP_IFACE_NAME_LENGTH]
 
char out_iface [AFP_IFACE_NAME_LENGTH]
 
unsigned int ring_buflen
 
uint8_t * ring_buf
 
uint8_t xdp_mode
 

Detailed Description

Structure to hold thread specific variables.

Definition at line 208 of file source-af-packet.c.

Field Documentation

uint8_t AFPThreadVars_::afp_state

Definition at line 241 of file source-af-packet.c.

Referenced by ReceiveAFPLoop(), and TmModuleDecodeAFPRegister().

int AFPThreadVars_::block_size

Definition at line 261 of file source-af-packet.c.

Referenced by AFPGetLinkType(), and ReceiveAFPThreadInit().

int AFPThreadVars_::block_timeout

Definition at line 262 of file source-af-packet.c.

Referenced by AFPGetLinkType(), and ReceiveAFPThreadInit().

const char* AFPThreadVars_::bpf_filter
int AFPThreadVars_::buffer_size

Definition at line 264 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

uint16_t AFPThreadVars_::capture_errors

Definition at line 238 of file source-af-packet.c.

Referenced by ReceiveAFPLoop(), and ReceiveAFPThreadInit().

uint16_t AFPThreadVars_::capture_kernel_drops
uint16_t AFPThreadVars_::capture_kernel_packets
ChecksumValidationMode AFPThreadVars_::checksum_mode
int AFPThreadVars_::cluster_id

Definition at line 274 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

int AFPThreadVars_::cluster_type

Definition at line 275 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

int AFPThreadVars_::cooked

Length of per function and thread data

Definition at line 251 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), ReceiveAFPThreadInit(), and TmModuleDecodeAFPRegister().

uint8_t AFPThreadVars_::copy_mode
uint8_t* AFPThreadVars_::data
int AFPThreadVars_::datalen

Per function and thread data

Definition at line 250 of file source-af-packet.c.

Referenced by ReceiveAFPThreadDeinit(), ReceiveAFPThreadInit(), and TmModuleDecodeAFPRegister().

uint32_t AFPThreadVars_::datalink
int AFPThreadVars_::down_count

Definition at line 272 of file source-af-packet.c.

Referenced by TmModuleDecodeAFPRegister().

int AFPThreadVars_::ebpf_filter_fd

Definition at line 268 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), AFPSetBPFFilter(), and ReceiveAFPThreadInit().

int AFPThreadVars_::ebpf_lb_fd

Definition at line 267 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

unsigned int AFPThreadVars_::frame_offset

Definition at line 231 of file source-af-packet.c.

Referenced by AFPGetLinkType(), and TmModuleDecodeAFPRegister().

LiveDevice* AFPThreadVars_::livedev
AFPPeer* AFPThreadVars_::mpeer
char AFPThreadVars_::out_iface[AFP_IFACE_NAME_LENGTH]

Definition at line 288 of file source-af-packet.c.

Referenced by AFPPeersListCheck(), and ReceiveAFPThreadInit().

uint64_t AFPThreadVars_::pkts

Definition at line 216 of file source-af-packet.c.

Referenced by TmModuleDecodeAFPRegister().

int AFPThreadVars_::promisc

Definition at line 270 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

union AFPThreadVars_::AFPTpacketReq AFPThreadVars_::req
uint8_t* AFPThreadVars_::ring_buf

Definition at line 292 of file source-af-packet.c.

Referenced by AFPGetLinkType(), and TmModuleDecodeAFPRegister().

unsigned int AFPThreadVars_::ring_buflen

Definition at line 291 of file source-af-packet.c.

Referenced by AFPGetLinkType(), and TmModuleDecodeAFPRegister().

int AFPThreadVars_::ring_size

Definition at line 260 of file source-af-packet.c.

Referenced by AFPGetLinkType(), and ReceiveAFPThreadInit().

TmSlot* AFPThreadVars_::slot

Definition at line 219 of file source-af-packet.c.

Referenced by ReceiveAFPLoop(), and TmModuleDecodeAFPRegister().

int AFPThreadVars_::socket
int AFPThreadVars_::threads

Definition at line 277 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

ThreadVars* AFPThreadVars_::tv
uint8_t AFPThreadVars_::xdp_mode

Definition at line 294 of file source-af-packet.c.

Referenced by ReceiveAFPThreadDeinit(), and ReceiveAFPThreadInit().


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