blob: fbdb751cff8728d45f0f47f2d103d6a2b892ba20 [file] [log] [blame]
Junxiao Shib2ff5732015-06-26 14:09:02 -07001ndn-dissect
2===========
3
Davide Pesaventoa420e972021-02-25 00:56:25 -05004Synopsis
5--------
Junxiao Shib2ff5732015-06-26 14:09:02 -07006
Davide Pesaventoa420e972021-02-25 00:56:25 -05007**ndn-dissect** [**-h**] [**-c**] [**-V**] [*file*]
Junxiao Shib2ff5732015-06-26 14:09:02 -07008
9Description
10-----------
11
Davide Pesaventoa420e972021-02-25 00:56:25 -050012:program:`ndn-dissect` is an NDN packet format inspector.
13It reads zero or more NDN packets from either an input file or the standard
14input, and displays the Type-Length-Value (TLV) structure of those packets
15on the standard output.
Junxiao Shib2ff5732015-06-26 14:09:02 -070016
17Options
18-------
19
Davide Pesaventoa420e972021-02-25 00:56:25 -050020.. option:: -h, --help
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050021
Davide Pesaventoa420e972021-02-25 00:56:25 -050022 Print help and exit.
Junxiao Shib2ff5732015-06-26 14:09:02 -070023
Davide Pesaventoa420e972021-02-25 00:56:25 -050024.. option:: -c, --content
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050025
Davide Pesaventoa420e972021-02-25 00:56:25 -050026 Dissect the value of Content elements as well. By default, the value of a
27 Content element is treated as an opaque blob and is not dissected further.
Junxiao Shib2ff5732015-06-26 14:09:02 -070028
Davide Pesaventoa420e972021-02-25 00:56:25 -050029.. option:: -V, --version
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050030
Davide Pesaventoa420e972021-02-25 00:56:25 -050031 Print program version and exit.
32
33.. option:: file
34
35 The file to read packets from.
36 If no *file* is given, or if *file* is "-", the standard input is used.
Junxiao Shib2ff5732015-06-26 14:09:02 -070037
38Examples
39--------
40
Davide Pesaventoa420e972021-02-25 00:56:25 -050041Inspect the response to Interest ``/app1/video``::
Junxiao Shib2ff5732015-06-26 14:09:02 -070042
Davide Pesaventoa420e972021-02-25 00:56:25 -050043 ndnpeek /app1/video | ndn-dissect