FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
src/vnet/pg

create packet-generator

Summary/usage

create packet-generator interface <interface name> [gso-enabled gso-size <size> [coalesce-enabled]].

Declaration and implementation

Declaration: create_pg_if_cmd (src/vnet/pg/cli.c line 731)

Implementation: create_pg_if_cmd_fn.

packet-generator

Summary/usage

Packet generator commands.

Declaration and implementation

Declaration: vlib_cli_pg_command (src/vnet/pg/cli.c line 51)

packet-generator capture

Summary/usage

packet-generator capture <interface name> pcap <filename> [count <n>].

Declaration and implementation

Declaration: pg_capture_cmd (src/vnet/pg/cli.c line 677)

Implementation: pg_capture_cmd_fn.

packet-generator configure

Summary/usage

Change packet generator stream parameters.

Declaration and implementation

Declaration: change_stream_parameters_cli (src/vnet/pg/cli.c line 594)

Implementation: change_stream_parameters.

packet-generator delete

Summary/usage

Delete stream with given name.

Declaration and implementation

Declaration: del_stream_cli (src/vnet/pg/cli.c line 547)

Implementation: del_stream.

packet-generator disable-stream

Summary/usage

Disable packet generator streams.

Declaration and implementation

Declaration: disable_streams_cli (src/vnet/pg/cli.c line 151)

Implementation: enable_disable_stream.

packet-generator mac-filter

Summary/usage

packet-generator mac-filter <INTERFACE> <on|off>.

Declaration and implementation

Declaration: enable_streams_cli (src/vnet/pg/input.c line 1950)

Implementation: pg_input_mac_filter_cfg.

packet-generator new

Summary/usage

Create packet generator stream.

Long help

Create packet generator stream

Arguments:

name STRING sets stream name interface STRING interface for stream output node NODE-NAME node for stream output data STRING specifies packet data pcap FILENAME read packet data from pcap file rate PPS rate to transfer packet data maxframe NPKTS maximum number of packets per frame

Declaration and implementation

Declaration: new_stream_cli (src/vnet/pg/cli.c line 511)

Implementation: new_stream.

show packet-generator

Summary/usage

show packet-generator [verbose].

Declaration and implementation

Declaration: show_streams_cli (src/vnet/pg/cli.c line 258)

Implementation: show_streams.