Project

General

Profile

PacketTagTypes » History » Version 16

Davide Pesavento, 02/01/2018 09:32 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 12 Davide Pesavento
Each Tag derived class MUST declare the following static member function:
5 1 Alex Afanasyev
6 12 Davide Pesavento
```cpp
7
static constexpr int
8
getTypeId();
9
```
10 2 Alex Afanasyev
11 12 Davide Pesavento
The return value of those functions SHOULD be registered in the table below.
12 1 Alex Afanasyev
13 16 Davide Pesavento
ID or range            | Usage
14
---------------------- | ---------------------------------------------------------------------
15
0..9                   | Reserved for testing
16
10                     | [[nfd:NDNLPv2]] IncomingFaceId
17
11                     | [[nfd:NDNLPv2]] NextHopFaceId
18
12                     | [[nfd:NDNLPv2]] CachePolicy
19
13                     | [[nfd:NDNLPv2]] CongestionMark
20
14                     | [[nfd:NDNLPv2]] NonDiscovery
21
15                     | [[nfd:NDNLPv2]] PrefixAnnouncement
22
1000                   | Certificate bundle name ([[Certificate Bundle Packet Format]])
23
1001                   | FinalBlockId of the certificate bundle ([[Certificate Bundle Packet Format]])
24
1086                   | NDNS CertificateFetcher: IterativeQueryController
25
0x60000000             | ndnSIM: HopCount
26
0x60000001..0x6fffffff | Reserved for ndnSIM
27
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