blob: 92c7225399701e610fe9ce8594b0b2a66fb9f809 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001tlvdump
2=======
3
4``tlvdump`` is a simple application allowing to decode structure of TLV-encoded packet.
5
Junxiao Shif8f63da2015-10-07 22:28:56 +00006Deprecated
7----------
8
9tlvdump is deprecated and will be removed in a future release of ndn-cxx.
10Please use ``ndn-dissect`` program from ndn-tools repository `<https://github.com/named-data/ndn-tools>`__.
11
Alexander Afanasyev151a8552014-04-11 00:54:43 -070012Usage
13-----
14
15::
16
17 tlvdump [filename]
18
19Description
20-----------
21
22If filename is specified, ``tlvdump`` will attempt to read and decode content of the file,
23otherwise data will be read from standard input.
24
25Example
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]]