aboutsummaryrefslogtreecommitdiff
path: root/doc/users-guide/users-guide-utilities-examples.adoc
blob: 2d5ad0113bea3252d80ba8c99a50b1950616b50c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
== Utilities and examples

=== PcapNg capture
If compiled using `--enable-pcapng-support` ODP will offer packet capturing
functionality in PcapNg format. If the /var/run/odp directory exists prior to
launching the application ODP will create a fifo for each NIC queue.
Queue naming will be of the following format: *<odp global pid>-<NIC
name>-flow-<queue number>*. Linux dd application can be used for capturing a
sample of the live stream from the fifo. Killing ether the application or dd
will stop the capturing process.

. `./configure --enable-pcapng-support`
. `sudo mkdir /var/run/odp`
. `sudo ./test/performance/odp_packet_gen -i enp2s0 --eth_dst A0:F6:FD:AE:62:6C
--ipv4_dst 192.168.49.20 --ipv4_src 192.168.49.4 -g 0`
. `sudo dd if=/var/run/odp/26737-enp2s0-flow-0 of=~/test.pcap`
. `ctrl^c`
. `wireshark ~/test.pcap`