FD.io VPP
v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
|
PCAP utility definitions. More...
Go to the source code of this file.
Data Structures | |
struct | pcap_file_header_t |
File header struct. More... | |
struct | pcap_packet_header_t |
Packet header. More... | |
struct | pcap_main_t |
PCAP main state data structure. More... | |
Macros | |
#define | foreach_vnet_pcap_packet_type |
Packet types supported by PCAP. More... | |
#define | foreach_pcap_file_header |
#define | foreach_pcap_packet_header |
#define | PCAP_MAIN_INIT_DONE (1 << 0) |
Enumerations | |
enum | pcap_packet_type_t { foreach_vnet_pcap_packet_type } |
Functions | |
clib_error_t * | pcap_write (pcap_main_t *pm) |
Write out data to output file. More... | |
clib_error_t * | pcap_read (pcap_main_t *pm) |
Read data from file. More... | |
static void * | pcap_add_packet (pcap_main_t *pm, f64 time_now, u32 n_bytes_in_trace, u32 n_bytes_in_packet) |
Add packet. More... | |
static void | pcap_add_buffer (pcap_main_t *pm, vlib_main_t *vm, u32 buffer_index, u32 n_bytes_in_trace) |
Add buffer (vlib_buffer_t) to the trace. More... | |
PCAP utility definitions.
Definition in file pcap.h.
#define foreach_pcap_file_header |
#define foreach_pcap_packet_header |
#define foreach_vnet_pcap_packet_type |
Packet types supported by PCAP.
null 0 ethernet 1 ppp 9 ip 12 hdlc 104
enum pcap_packet_type_t |
|
inlinestatic |
Add buffer (vlib_buffer_t) to the trace.
*pm | - pcap_main_t |
*vm | - vlib_main_t |
buffer_index | - u32 |
n_bytes_in_trace | - u32 |
Definition at line 205 of file pcap.h.
|
inlinestatic |
Add packet.
*pm | - pcap_main_t |
time_now | - f64 |
n_bytes_in_trace | - u32 |
n_bytes_in_packet | - u32 |
Definition at line 179 of file pcap.h.
clib_error_t* pcap_read | ( | pcap_main_t * | pm | ) |
Read data from file.
Read data from file.
Definition at line 178 of file pcap.c.
clib_error_t* pcap_write | ( | pcap_main_t * | pm | ) |
Write out data to output file.
Write out data to output file.
Definition at line 89 of file pcap.c.