blob: 4d609385c32b30a003f58107ebe6f7e584bed474 [file] [log] [blame]
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +00001.. _types:
2
3Type value assignment
4---------------------
5
6+---------------------------------------------+-------------------+
7| Type | Assigned value |
8+=============================================+===================+
9| **Packet types** |
10+---------------------------------------------+-------------------+
11| Interest | 0 |
12+---------------------------------------------+-------------------+
13| Data | 1 |
14+---------------------------------------------+-------------------+
15| **Common fields** |
16+---------------------------------------------+-------------------+
17| Name | 2 |
18+---------------------------------------------+-------------------+
19| NameComponent | 3 |
20+---------------------------------------------+-------------------+
21| **Interest packet** |
22+---------------------------------------------+-------------------+
23| Selectors | 4 |
24+---------------------------------------------+-------------------+
25| Nonce | 5 |
26+---------------------------------------------+-------------------+
27| Scope | 6 |
28+---------------------------------------------+-------------------+
29| InterestLifetime | 7 |
30+---------------------------------------------+-------------------+
31| **Interest/Selectors** |
32+---------------------------------------------+-------------------+
33| MinSuffixComponents | 8 |
34+---------------------------------------------+-------------------+
35| MaxSuffixComponents | 9 |
36+---------------------------------------------+-------------------+
37| PublisherPublicKeyLocator | 10 |
38+---------------------------------------------+-------------------+
39| Exclude | 11 |
40+---------------------------------------------+-------------------+
41| ChildSelector | 12 |
42+---------------------------------------------+-------------------+
43| MustBeFresh | 13 |
44+---------------------------------------------+-------------------+
45| Any | 14 |
46+---------------------------------------------+-------------------+
47| **Data packet** |
48+---------------------------------------------+-------------------+
49| MetaInfo | 15 |
50+---------------------------------------------+-------------------+
51| Content | 16 |
52+---------------------------------------------+-------------------+
53| SignatureInfo | 17 |
54+---------------------------------------------+-------------------+
55| SignatureValue | 18 |
56+---------------------------------------------+-------------------+
57| **Data/MetaInfo** |
58+---------------------------------------------+-------------------+
59| ContentType | 19 |
60+---------------------------------------------+-------------------+
61| FreshnessPeriod | 20 |
62+---------------------------------------------+-------------------+
63| **Data/Signature** |
64+---------------------------------------------+-------------------+
65| SignatureType | 21 |
66+---------------------------------------------+-------------------+
67| KeyLocator | 22 |
68+---------------------------------------------+-------------------+
69| KeyLocatorDigest | 23 |
70+---------------------------------------------+-------------------+
71
72Type value reservations
73~~~~~~~~~~~~~~~~~~~~~~~
74
75+----------------+-----------------------------------------------------------+
76| Values | Designation |
77+================+===========================================================+
78| 24-127 | Reserved for future assignments (1-byte encoding) |
79+----------------+-----------------------------------------------------------+
80| 128-252 | For application use (1-byte encoding) |
81+----------------+-----------------------------------------------------------+
82| 253-32767 | Reserved for future assignments (3-byte encoding) |
83+----------------+-----------------------------------------------------------+
84| >32767 | For application use (3-byte encoding) |
85+----------------+-----------------------------------------------------------+