![]() |
FD.io VPP
v18.01.1-37-g7ea3975
Vector Packet Processing
|
PCAP utility definitions. More...
Include dependency graph for pcap.h:
This graph shows which files directly or indirectly include this file: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 202 of file pcap.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Add packet.
| *pm | - pcap_main_t |
| time_now | - f64 |
| n_bytes_in_trace | - u32 |
| n_bytes_in_packet | - u32 |
Definition at line 176 of file pcap.h.
Here is the caller graph for this function:| 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.
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function: