Project

General

Profile

PacketTagTypes » History » Version 18

weijia yuan, 10/20/2018 11:49 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 18 weijia yuan
20                     | repo-ng Base-handle Command
23 16 Davide Pesavento
1000                   | Certificate bundle name ([[Certificate Bundle Packet Format]])
24
1001                   | FinalBlockId of the certificate bundle ([[Certificate Bundle Packet Format]])
25
1086                   | NDNS CertificateFetcher: IterativeQueryController
26
0x60000000             | ndnSIM: HopCount
27
0x60000001..0x6fffffff | Reserved for ndnSIM
28
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