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 | |
| 6 | Usage |
| 7 | ----- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | tlvdump [filename] |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | If filename is specified, ``tlvdump`` will attempt to read and decode content of the file, |
| 17 | otherwise data will be read from standard input. |
| 18 | |
| 19 | Example |
| 20 | ------- |
| 21 | |
| 22 | :: |
| 23 | |
| 24 | $ tlvdump interest.tlv |
| 25 | 5 (Interest) (size: 89) |
| 26 | 7 (Name) (size: 20) |
| 27 | 8 (NameComponent) (size: 5) [[local]] |
| 28 | 8 (NameComponent) (size: 3) [[ndn]] |
| 29 | 8 (NameComponent) (size: 6) [[prefix]] |
| 30 | 9 (Selectors) (size: 55) |
| 31 | 13 (MinSuffixComponents) (size: 1) [[%01]] |
| 32 | 14 (MaxSuffixComponents) (size: 1) [[%01]] |
| 33 | 28 (KeyLocatorDigest) (size: 22) |
| 34 | 7 (Name) (size: 20) |
| 35 | 8 (NameComponent) (size: 4) [[test]] |
| 36 | 8 (NameComponent) (size: 3) [[key]] |
| 37 | 8 (NameComponent) (size: 7) [[locator]] |
| 38 | 16 (Exclude) (size: 20) |
| 39 | 8 (NameComponent) (size: 4) [[alex]] |
| 40 | 8 (NameComponent) (size: 4) [[xxxx]] |
| 41 | 19 (Any) (size: 0) [[...]] |
| 42 | 8 (NameComponent) (size: 4) [[yyyy]] |
| 43 | 17 (ChildSelector) (size: 1) [[%01]] |
| 44 | 10 (Nonce) (size: 1) [[%01]] |
| 45 | 11 (Scope) (size: 1) [[%01]] |
| 46 | 12 (InterestLifetime) (size: 2) [[%03%E8]] |