Project

General

Profile

PacketTagTypes » History » Version 12

Davide Pesavento, 11/14/2017 09:37 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
0000~0009             | Unit 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 9 Junxiao Shi
1000                  | Certificate bundle name ([[Certificate Bundle Packet Format]])
23 10 Yumin Xia
1001                  | FinalBlockId of the certificate bundle ([[Certificate Bundle Packet Format]])
24 12 Davide Pesavento
1086                  | NDNS CertificateFetcher: IterativeQueryController
25 7 Alex Afanasyev
0x60000000            | ndnSIM: HopCount
26 4 Junxiao Shi
0x60000001~0x6fffffff | ndnSIM
27 12 Davide Pesavento
9000-9999             | Reserved for private experiments
28 2 Alex Afanasyev
29
30
## Current usage in ndnSIM
31
32
ID         | Tag
33
---------- | ----------------------
34
0xaee87802 | ns3::ndn::Ns3PacketTag