Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | tlvdump |
| 2 | ======= |
| 3 | |
| 4 | ``tlvdump`` is a simple application allowing to decode structure of TLV-encoded packet. |
| 5 | |
Junxiao Shi | f8f63da | 2015-10-07 22:28:56 +0000 | [diff] [blame] | 6 | Deprecated |
| 7 | ---------- |
| 8 | |
| 9 | tlvdump is deprecated and will be removed in a future release of ndn-cxx. |
| 10 | Please use ``ndn-dissect`` program from ndn-tools repository `<https://github.com/named-data/ndn-tools>`__. |
| 11 | |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 12 | Usage |
| 13 | ----- |
| 14 | |
| 15 | :: |
| 16 | |
| 17 | tlvdump [filename] |
| 18 | |
| 19 | Description |
| 20 | ----------- |
| 21 | |
| 22 | If filename is specified, ``tlvdump`` will attempt to read and decode content of the file, |
| 23 | otherwise data will be read from standard input. |
| 24 | |
| 25 | Example |
| 26 | ------- |
| 27 | |
| 28 | :: |
| 29 | |
| 30 | $ tlvdump interest.tlv |
| 31 | 5 (Interest) (size: 89) |
| 32 | 7 (Name) (size: 20) |
| 33 | 8 (NameComponent) (size: 5) [[local]] |
| 34 | 8 (NameComponent) (size: 3) [[ndn]] |
| 35 | 8 (NameComponent) (size: 6) [[prefix]] |
| 36 | 9 (Selectors) (size: 55) |
| 37 | 13 (MinSuffixComponents) (size: 1) [[%01]] |
| 38 | 14 (MaxSuffixComponents) (size: 1) [[%01]] |
| 39 | 28 (KeyLocatorDigest) (size: 22) |
| 40 | 7 (Name) (size: 20) |
| 41 | 8 (NameComponent) (size: 4) [[test]] |
| 42 | 8 (NameComponent) (size: 3) [[key]] |
| 43 | 8 (NameComponent) (size: 7) [[locator]] |
| 44 | 16 (Exclude) (size: 20) |
| 45 | 8 (NameComponent) (size: 4) [[alex]] |
| 46 | 8 (NameComponent) (size: 4) [[xxxx]] |
| 47 | 19 (Any) (size: 0) [[...]] |
| 48 | 8 (NameComponent) (size: 4) [[yyyy]] |
| 49 | 17 (ChildSelector) (size: 1) [[%01]] |
| 50 | 10 (Nonce) (size: 1) [[%01]] |
| 51 | 11 (Scope) (size: 1) [[%01]] |
| 52 | 12 (InterestLifetime) (size: 2) [[%03%E8]] |