dump: add README and manpage

refs #2855

Change-Id: I59379349e3579b267956933aeb603aa8d747aa53
This commit is contained in:
Junxiao Shi authored and Alex Afanasyev committed 2015-06-20 15:57:12 -07:00
1 parent 3cd47dfa85
commit b99fb2b5b9
3 files changed
+73

No files matched your search

+1
View File
@@ -10,4 +10,5 @@ man_pages = [
('ndnpoke', 'ndnpoke', 'simple producer to publish one Data', None, 1),
('ndnping', 'ndnping', 'reachability testing client', None, 1),
('ndnpingserver', 'ndnpingserver', 'reachability testing server', None, 1),
('ndndump', 'ndndump', 'traffic analysis tool', None, 8),
]
+59
View File
@@ -0,0 +1,59 @@
ndndump
=======
Usage
-----
::
ndndump [-hV] [-i interface] [-r file] [-f filter] [expression]
Description
-----------
:program:`ndndump` is a traffic analysis tool that captures Interest and Data packets on the wire,
and displays brief information about captured packets.
Currently, :program:`ndndump` is capable of extracting Interest and Data packets from:
* Ethernet, when bare Interest/Data is transmitted without NDNLP header
* PPP link (e.g., pcap trace from ndnSIM)
* IPv4 UDP unicast tunnel
* IPv4 UDP multicast group
* IPv6 TCP tunnel, when Interest/Data is aligned to the front of a TCP segment
Options
-------
``-h``
Print help and exit.
``-V``
Print version and exit.
``-i``
Listen on :option:`interface`.
If unspecified, ndndump searches the system interface list for the lowest numbered,
configured up interface (excluding loopback).
``-r``
Read packets from :option:`file` (which was created with :manpage:`tcpdump(8)` using its -w option).
``-v``
Produce verbose output.
``-f``
Print a packet only if its Name matches the regular expression :option:`filter`.
``expression``
Selects which packets will be analyzed, in :manpage:`pcap-filter(7)` format.
If no :option:`expression` is given, a default expression is implied which can be seen with ``-h`` option.
Examples
--------
Capture on eth1 and print packets containing "ping":
::
ndndump -i eth1 -f '.*ping.*'
+13
View File
@@ -0,0 +1,13 @@
# ndndump
**ndndump** is a traffic analysis tool that captures Interest and Data packets on the wire,
and displays brief information about captured packets.
Usage example:
1. start NFD on local machine
2. create an IPv4 UDP tunnel to a remote machine
3. cause some traffic going on the tunnel
4. execute `sudo ndndump`
For more information, consult the manpage.