FD.io VPP  v18.10-34-gcce845e
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 124 of file pcap.h.

Field Documentation

int pcap_main_t::file_descriptor

File descriptor for reading/writing.

Definition at line 146 of file pcap.h.

char* pcap_main_t::file_name

File name of pcap output.

Definition at line 130 of file pcap.h.

u32 pcap_main_t::flags

flags

Definition at line 142 of file pcap.h.

clib_spinlock_t pcap_main_t::lock

spinlock to protect e.g.

pcap_data

Definition at line 127 of file pcap.h.

u32 pcap_main_t::max_packet_bytes

Definition at line 161 of file pcap.h.

u32 pcap_main_t::min_packet_bytes

Min/Max Packet bytes.

Definition at line 161 of file pcap.h.

u32 pcap_main_t::n_packets_captured

Number of packets currently captured.

Definition at line 139 of file pcap.h.

u32 pcap_main_t::n_packets_to_capture

Number of packets to capture.

Definition at line 133 of file pcap.h.

u32 pcap_main_t::n_pcap_data_written

Bytes written.

Definition at line 149 of file pcap.h.

pcap_packet_type_t pcap_main_t::packet_type

Packet type.

Definition at line 136 of file pcap.h.

u8** pcap_main_t::packets_read

Packets read from file.

Definition at line 155 of file pcap.h.

u8* pcap_main_t::pcap_data

Vector of pcap data.

Definition at line 152 of file pcap.h.

u64* pcap_main_t::timestamps

Timestamps.

Definition at line 158 of file pcap.h.


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