suricata
AFPThreadVars_ Struct Reference

Structure to hold thread specific variables. More...

Collaboration diagram for AFPThreadVars_:

Data Fields

union {
   char *   ring_v2
 
   struct iovec *   ring_v3
 
}; 
 
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 {
   struct tpacket_req   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 207 of file source-af-packet.c.

Field Documentation

union { ... }
union { ... }
uint8_t AFPThreadVars_::afp_state

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

Referenced by ReceiveAFPLoop(), and TmModuleDecodeAFPRegister().

int AFPThreadVars_::block_size

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

Referenced by AFPGetLinkType(), and ReceiveAFPThreadInit().

int AFPThreadVars_::block_timeout

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

Referenced by AFPGetLinkType().

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

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

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

uint16_t AFPThreadVars_::capture_errors

Definition at line 237 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 273 of file source-af-packet.c.

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

int AFPThreadVars_::cluster_type

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

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

int AFPThreadVars_::cooked

Length of per function and thread data

Definition at line 250 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 249 of file source-af-packet.c.

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

uint32_t AFPThreadVars_::datalink
int AFPThreadVars_::down_count

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

Referenced by TmModuleDecodeAFPRegister().

int AFPThreadVars_::ebpf_filter_fd

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

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

int AFPThreadVars_::ebpf_lb_fd

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

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

unsigned int AFPThreadVars_::frame_offset

Definition at line 230 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 287 of file source-af-packet.c.

Referenced by AFPPeersListCheck(), and ReceiveAFPThreadInit().

uint64_t AFPThreadVars_::pkts

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

Referenced by TmModuleDecodeAFPRegister().

int AFPThreadVars_::promisc

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

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

struct tpacket_req AFPThreadVars_::req

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

Referenced by AFPGetLinkType(), and TmModuleDecodeAFPRegister().

uint8_t* AFPThreadVars_::ring_buf

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

Referenced by AFPGetLinkType(), and TmModuleDecodeAFPRegister().

unsigned int AFPThreadVars_::ring_buflen

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

Referenced by AFPGetLinkType(), and TmModuleDecodeAFPRegister().

int AFPThreadVars_::ring_size

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

Referenced by AFPGetLinkType(), and ReceiveAFPThreadInit().

char* AFPThreadVars_::ring_v2
struct iovec* AFPThreadVars_::ring_v3
TmSlot* AFPThreadVars_::slot

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

Referenced by ReceiveAFPLoop(), and TmModuleDecodeAFPRegister().

int AFPThreadVars_::socket
int AFPThreadVars_::threads

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

Referenced by AFPIsFanoutSupported(), and ReceiveAFPThreadInit().

ThreadVars* AFPThreadVars_::tv
uint8_t AFPThreadVars_::xdp_mode

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

Referenced by ReceiveAFPThreadDeinit(), and ReceiveAFPThreadInit().


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