Project

General

Profile

PacketTagTypes » History » Version 14

Davide Pesavento, 02/01/2018 09:25 PM

1 12 Davide Pesavento
# Packet Tag TypeId Assignments
2 1 Alex Afanasyev
3 2 Alex Afanasyev
This page is a registry for type identifiers of Tag derived classes.
4
5 12 Davide Pesavento
Each Tag derived class MUST declare the following static member function:
6 1 Alex Afanasyev
7 12 Davide Pesavento
```cpp
8
static constexpr int
9
getTypeId();
10
```
11 2 Alex Afanasyev
12 12 Davide Pesavento
The return value of those functions SHOULD be registered in the table below.
13 2 Alex Afanasyev
14
ID or range           | Usage
15 1 Alex Afanasyev
--------------------- | ---------------------------------------------------------------------
16 14 Davide Pesavento
0000~0009             | Reserved for testing
17 3 Junxiao Shi
0010                  | [[nfd:NDNLPv2]] IncomingFaceId
18 1 Alex Afanasyev
0011                  | [[nfd:NDNLPv2]] NextHopFaceId
19
0012                  | [[nfd:NDNLPv2]] CachePolicy
20 11 Teng Liang
0013                  | [[nfd:NDNLPv2]] CongestionMark
21 8 Alex Afanasyev
0014                  | [[nfd:NDNLPv2]] NonDiscovery
22 13 Teng Liang
0015                  | [[nfd:NDNLPv2]] PrefixAnnouncement
23 9 Junxiao Shi
1000                  | Certificate bundle name ([[Certificate Bundle Packet Format]])
24 10 Yumin Xia
1001                  | FinalBlockId of the certificate bundle ([[Certificate Bundle Packet Format]])
25 12 Davide Pesavento
1086                  | NDNS CertificateFetcher: IterativeQueryController
26 7 Alex Afanasyev
0x60000000            | ndnSIM: HopCount
27 14 Davide Pesavento
0x60000001~0x6fffffff | Reserved for ndnSIM
28 12 Davide Pesavento
9000-9999             | Reserved for private experiments
29 2 Alex Afanasyev
30
31
## Current usage in ndnSIM
32
33
ID         | Tag
34
---------- | ----------------------
35
0xaee87802 | ns3::ndn::Ns3PacketTag