blob: 65d1ea16a05310f1bf38ea2600af5f036edc55c1 [file] [log] [blame]
Junxiao Shib99fb2b2015-06-19 15:10:11 -07001ndndump
2=======
3
4Usage
5-----
6
7::
8
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -05009 ndndump [-hV] [-i INTERFACE] [-r FILE] [-f FILTER] [EXPRESSION]
Junxiao Shib99fb2b2015-06-19 15:10:11 -070010
11Description
12-----------
13
Vince Lehmanf8852b32016-03-07 15:51:42 -060014:program:`ndndump` is a traffic analysis tool that captures Interest, Data, and Nack packets on the
15wire and displays brief information about captured packets.
Junxiao Shib99fb2b2015-06-19 15:10:11 -070016
Vince Lehmanf8852b32016-03-07 15:51:42 -060017Currently, :program:`ndndump` is capable of extracting Interest, Data, and Nack packets from:
Junxiao Shib99fb2b2015-06-19 15:10:11 -070018
Vince Lehmanf8852b32016-03-07 15:51:42 -060019* Ethernet
Junxiao Shib99fb2b2015-06-19 15:10:11 -070020* PPP link (e.g., pcap trace from ndnSIM)
21* IPv4 UDP unicast tunnel
22* IPv4 UDP multicast group
Vince Lehmanf8852b32016-03-07 15:51:42 -060023* IPv4 TCP tunnel, when Interest/Data/Nack is aligned to the front of a TCP segment
Junxiao Shib99fb2b2015-06-19 15:10:11 -070024
25Options
26-------
27
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050028.. option:: -h
Junxiao Shib99fb2b2015-06-19 15:10:11 -070029
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050030 Print help and exit.
Junxiao Shib99fb2b2015-06-19 15:10:11 -070031
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050032.. option:: -V
Junxiao Shib99fb2b2015-06-19 15:10:11 -070033
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050034 Print version and exit.
Junxiao Shib99fb2b2015-06-19 15:10:11 -070035
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050036.. option:: -i INTERFACE
Junxiao Shib99fb2b2015-06-19 15:10:11 -070037
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050038 Listen on the specified interface.
39 If unspecified, ndndump searches the system interface list for the lowest numbered,
40 configured up interface (excluding loopback).
Junxiao Shib99fb2b2015-06-19 15:10:11 -070041
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050042.. option:: -r FILE
43
44 Read packets from the specified file (which was created with :manpage:`tcpdump(8)` using its ``-w`` option).
45
46.. option:: -v
47
48 Produce verbose output.
49
50.. option:: -f FILTER
51
52 Print a packet only if its Name matches the regular expression ``FILTER``.
53
54.. option:: EXPRESSION
55
56 Selects which packets will be analyzed, in :manpage:`pcap-filter(7)` format.
57 If no :option:`EXPRESSION` is given, a default expression is implied which can be seen with ``-h`` option.
Junxiao Shib99fb2b2015-06-19 15:10:11 -070058
59Examples
60--------
61
62Capture on eth1 and print packets containing "ping":
63
64::
65
66 ndndump -i eth1 -f '.*ping.*'