tlv.h
1 
22 #ifndef NDN_TLV_H
23 #define NDN_TLV_H
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 enum {
30  ndn_Tlv_Interest = 5,
31  ndn_Tlv_Data = 6,
32  ndn_Tlv_Name = 7,
33  ndn_Tlv_NameComponent = 8,
34  ndn_Tlv_Selectors = 9,
35  ndn_Tlv_Nonce = 10,
36  // ndn_Tlv_<Unassigned> = 11,
37  ndn_Tlv_InterestLifetime = 12,
38  ndn_Tlv_MinSuffixComponents = 13,
39  ndn_Tlv_MaxSuffixComponents = 14,
40  ndn_Tlv_PublisherPublicKeyLocator = 15,
41  ndn_Tlv_Exclude = 16,
42  ndn_Tlv_ChildSelector = 17,
43  ndn_Tlv_MustBeFresh = 18,
44  ndn_Tlv_Any = 19,
45  ndn_Tlv_MetaInfo = 20,
46  ndn_Tlv_Content = 21,
47  ndn_Tlv_SignatureInfo = 22,
48  ndn_Tlv_SignatureValue = 23,
49  ndn_Tlv_ContentType = 24,
50  ndn_Tlv_FreshnessPeriod = 25,
51  ndn_Tlv_FinalBlockId = 26,
52  ndn_Tlv_SignatureType = 27,
53  ndn_Tlv_KeyLocator = 28,
54  ndn_Tlv_KeyLocatorDigest = 29,
55  ndn_Tlv_SelectedDelegation = 32
56 };
57 
58 enum {
59  ndn_Tlv_SignatureType_DigestSha256 = 0,
60  ndn_Tlv_SignatureType_SignatureSha256WithRsa = 1,
61  ndn_Tlv_SignatureType_SignatureSha256WithEcdsa = 3,
62  ndn_Tlv_SignatureType_SignatureHmacWithSha256 = 4
63 };
64 
65 enum {
66  ndn_Tlv_ContentType_Default = 0,
67  ndn_Tlv_ContentType_Link = 1,
68  ndn_Tlv_ContentType_Key = 2
69 };
70 
71 enum {
72  ndn_Tlv_NfdCommand_ControlResponse = 101,
73  ndn_Tlv_NfdCommand_StatusCode = 102,
74  ndn_Tlv_NfdCommand_StatusText = 103
75 };
76 
77 enum {
78  ndn_Tlv_ControlParameters_ControlParameters = 104,
79  ndn_Tlv_ControlParameters_FaceId = 105,
80  ndn_Tlv_ControlParameters_Uri = 114,
81  ndn_Tlv_ControlParameters_LocalControlFeature = 110,
82  ndn_Tlv_ControlParameters_Origin = 111,
83  ndn_Tlv_ControlParameters_Cost = 106,
84  ndn_Tlv_ControlParameters_Flags = 108,
85  ndn_Tlv_ControlParameters_Strategy = 107,
86  ndn_Tlv_ControlParameters_ExpirationPeriod = 109
87 };
88 
89 enum {
90  ndn_Tlv_LpPacket_LpPacket = 100,
91  ndn_Tlv_LpPacket_Fragment = 80,
92  ndn_Tlv_LpPacket_Sequence = 81,
93  ndn_Tlv_LpPacket_FragIndex = 82,
94  ndn_Tlv_LpPacket_FragCount = 83,
95  ndn_Tlv_LpPacket_Nack = 800,
96  ndn_Tlv_LpPacket_NackReason = 801,
97  ndn_Tlv_LpPacket_NextHopFaceId = 816,
98  ndn_Tlv_LpPacket_IncomingFaceId = 817,
99  ndn_Tlv_LpPacket_CachePolicy = 820,
100  ndn_Tlv_LpPacket_CachePolicyType = 821,
101  ndn_Tlv_LpPacket_IGNORE_MIN = 800,
102  ndn_Tlv_LpPacket_IGNORE_MAX = 959
103 };
104 
105 enum {
106  ndn_Tlv_Link_Preference = 30,
107  ndn_Tlv_Link_Delegation = 31
108 };
109 
110 enum {
111  ndn_Tlv_Encrypt_EncryptedContent = 130,
112  ndn_Tlv_Encrypt_EncryptionAlgorithm = 131,
113  ndn_Tlv_Encrypt_EncryptedPayload = 132,
114  ndn_Tlv_Encrypt_InitialVector = 133
115 };
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 #endif