FD.io VPP
v17.04.2-2-ga8f93f8
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 |
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 |
Flush output vector.
Definition at line 201 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 173 of file pcap.h.
clib_error_t* pcap_read | ( | pcap_main_t * | pm | ) |
Read data from file.
Read data from file.
Definition at line 170 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.