FD.io VPP
v21.01.1
Vector Packet Processing
|
Go to the source code of this file.
Functions | |
clib_error_t * | pcap_close (pcap_main_t *pm) |
Write out data to output file. More... | |
clib_error_t * | pcap_write (pcap_main_t *pm) |
Write PCAP 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, struct vlib_main_t *vm, u32 buffer_index, u32 n_bytes_in_trace) |
Add buffer (vlib_buffer_t) to the trace. More... | |
|
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 67 of file pcap_funcs.h.
|
inlinestatic |
Add packet.
*pm | - pcap_main_t |
time_now | - f64 |
n_bytes_in_trace | - u32 |
n_bytes_in_packet | - u32 |
Definition at line 41 of file pcap_funcs.h.
clib_error_t* pcap_close | ( | pcap_main_t * | pm | ) |
Write out data to output file.
Close the file created by pcap_write function.
Write out data to output file.
Close the file created by pcap_write function.
Definition at line 74 of file pcap.c.
clib_error_t* pcap_read | ( | pcap_main_t * | pm | ) |
Read data from file.
Read data from file.
Definition at line 176 of file pcap.c.
clib_error_t* pcap_write | ( | pcap_main_t * | pm | ) |
Write PCAP file.
Definition at line 89 of file pcap.c.