![]() |
FD.io VPP
v20.05.1-6-gf53edbc3b
Vector Packet Processing
|
MPCAP utility definitions. More...
Include dependency graph for mpcap.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | mpcap_file_header_t |
| File header struct. More... | |
| struct | mpcap_packet_header_t |
| Packet header. More... | |
| struct | mpcap_main_t |
| MPCAP main state data structure. More... | |
Macros | |
| #define | foreach_vnet_mpcap_packet_type |
| Packet types supported by MPCAP. More... | |
| #define | foreach_mpcap_file_header |
| #define | foreach_mpcap_packet_header |
| #define | MPCAP_FLAG_INIT_DONE (1 << 0) |
| #define | MPCAP_FLAG_THREAD_SAFE (1 << 1) |
| #define | MPCAP_FLAG_WRITE_ENABLE (1 << 2) |
| #define | MPCAP_DEFAULT_FILE_SIZE (10<<20) |
Enumerations | |
| enum | mpcap_packet_type_t { foreach_vnet_mpcap_packet_type } |
Functions | |
| clib_error_t * | mpcap_init (mpcap_main_t *pm) |
| initialize a mpcap file (for writing) More... | |
| clib_error_t * | mpcap_close (mpcap_main_t *pm) |
| Flush / unmap a mpcap file. More... | |
| clib_error_t * | mpcap_map (mpcap_main_t *pm) |
| mmap a mpcap data file. More... | |
MPCAP utility definitions.
Definition in file mpcap.h.
| #define foreach_mpcap_file_header |
| #define foreach_mpcap_packet_header |
| #define foreach_vnet_mpcap_packet_type |
| enum mpcap_packet_type_t |
| clib_error_t* mpcap_close | ( | mpcap_main_t * | pm | ) |
Flush / unmap a mpcap file.
Flush / unmap a mpcap file.
| mpcap_main_t | * pm |
Definition at line 56 of file mpcap.c.
Here is the caller graph for this function:| clib_error_t* mpcap_init | ( | mpcap_main_t * | pm | ) |
initialize a mpcap file (for writing)
initialize a mpcap file (for writing)
| mpcap_main_t | * pm |
Definition at line 85 of file mpcap.c.
Here is the call graph for this function:
Here is the caller graph for this function:| clib_error_t* mpcap_map | ( | mpcap_main_t * | pm | ) |
mmap a mpcap data file.
mmap a mpcap data file.
to read from another process
| pcap_main_t | *pm |