Junxiao Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 1 | ndn-dissect |
| 2 | =========== |
| 3 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 4 | Synopsis |
| 5 | -------- |
Junxiao Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 6 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 7 | **ndn-dissect** [**-h**] [**-c**] [**-V**] [*file*] |
Junxiao Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 8 | |
| 9 | Description |
| 10 | ----------- |
| 11 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 12 | :program:`ndn-dissect` is an NDN packet format inspector. |
| 13 | It reads zero or more NDN packets from either an input file or the standard |
| 14 | input, and displays the Type-Length-Value (TLV) structure of those packets |
| 15 | on the standard output. |
Junxiao Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 16 | |
| 17 | Options |
| 18 | ------- |
| 19 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 20 | .. option:: -h, --help |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 21 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 22 | Print help and exit. |
Junxiao Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 23 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 24 | .. option:: -c, --content |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 25 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 26 | 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 Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 28 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 29 | .. option:: -V, --version |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 30 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 31 | 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 Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 37 | |
| 38 | Examples |
| 39 | -------- |
| 40 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 41 | Inspect the response to Interest ``/app1/video``:: |
Junxiao Shi | b2ff573 | 2015-06-26 14:09:02 -0700 | [diff] [blame] | 42 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame] | 43 | ndnpeek /app1/video | ndn-dissect |