FD.io VPP  v21.01.1
Vector Packet Processing
pcap_main_t Struct Reference

PCAP main state data structure. More...

+ Collaboration diagram for pcap_main_t:

Data Fields

clib_spinlock_t lock
 spinlock to protect e.g. More...
 
char * file_name
 File name of pcap output. More...
 
u32 n_packets_to_capture
 Number of packets to capture. More...
 
pcap_packet_type_t packet_type
 Packet type. More...
 
u32 n_packets_captured
 Number of packets currently captured. More...
 
u32 flags
 flags More...
 
int file_descriptor
 File descriptor for reading/writing. More...
 
u32 n_pcap_data_written
 Bytes written. More...
 
u8pcap_data
 Vector of pcap data. More...
 
u8 ** packets_read
 Packets read from file. More...
 
u64timestamps
 Timestamps. More...
 
u32 min_packet_bytes
 Min/Max Packet bytes. More...
 
u32 max_packet_bytes
 

Detailed Description

PCAP main state data structure.

Definition at line 156 of file pcap.h.

Field Documentation

◆ file_descriptor

int pcap_main_t::file_descriptor

File descriptor for reading/writing.

Definition at line 178 of file pcap.h.

◆ file_name

char* pcap_main_t::file_name

File name of pcap output.

Definition at line 162 of file pcap.h.

◆ flags

u32 pcap_main_t::flags

flags

Definition at line 174 of file pcap.h.

◆ lock

clib_spinlock_t pcap_main_t::lock

spinlock to protect e.g.

pcap_data

Definition at line 159 of file pcap.h.

◆ max_packet_bytes

u32 pcap_main_t::max_packet_bytes

Definition at line 193 of file pcap.h.

◆ min_packet_bytes

u32 pcap_main_t::min_packet_bytes

Min/Max Packet bytes.

Definition at line 193 of file pcap.h.

◆ n_packets_captured

u32 pcap_main_t::n_packets_captured

Number of packets currently captured.

Definition at line 171 of file pcap.h.

◆ n_packets_to_capture

u32 pcap_main_t::n_packets_to_capture

Number of packets to capture.

Definition at line 165 of file pcap.h.

◆ n_pcap_data_written

u32 pcap_main_t::n_pcap_data_written

Bytes written.

Definition at line 181 of file pcap.h.

◆ packet_type

pcap_packet_type_t pcap_main_t::packet_type

Packet type.

Definition at line 168 of file pcap.h.

◆ packets_read

u8** pcap_main_t::packets_read

Packets read from file.

Definition at line 187 of file pcap.h.

◆ pcap_data

u8* pcap_main_t::pcap_data

Vector of pcap data.

Definition at line 184 of file pcap.h.

◆ timestamps

u64* pcap_main_t::timestamps

Timestamps.

Definition at line 190 of file pcap.h.


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