FD.io VPP
v18.07-rc0-415-g6c78436
Vector Packet Processing
|
Functions to convert PCAP file format to VPP PG (Packet Generator) More...
Go to the source code of this file.
Functions | |
void | stream_boilerplate (FILE *ofp, int i, u8 *pkt) |
Packet Generator Stream boilerplate. More... | |
int | pcap2pg (pcap_main_t *pm, FILE *ofp) |
Conversion of PCAP file to PG file format. More... | |
int | main (int argc, char **argv) |
pcap2pg. More... | |
Variables | |
pcap_main_t | pcap_main |
static char * | pg_fmt |
char * to seed a PG file More... | |
Functions to convert PCAP file format to VPP PG (Packet Generator)
Definition in file pcap2pg.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
int pcap2pg | ( | pcap_main_t * | pm, |
FILE * | ofp | ||
) |
Conversion of PCAP file to PG file format.
*pm | - pcap_main_t |
*ofp | - FILE |
In vnet terms, packet generator interfaces are not ethernets. They don't have vlan tables. This transforms captured 802.1q VLAN packets into regular Ethernet packets.
Definition at line 60 of file pcap2pg.c.
void stream_boilerplate | ( | FILE * | ofp, |
int | i, | ||
u8 * | pkt | ||
) |
pcap_main_t pcap_main |