Project

General

Profile

PacketTagTypes » History » Version 19

Alex Afanasyev, 06/30/2020 07:56 AM

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 19 Alex Afanasyev
1002                   | SignedInterestFormatTag (an internal detail of ValidationState in ndn-cxx)
26 16 Davide Pesavento
1086                   | NDNS CertificateFetcher: IterativeQueryController
27
0x60000000             | ndnSIM: HopCount
28
0x60000001..0x6fffffff | Reserved for ndnSIM
29
9000..9999             | Reserved for private experiments
30 2 Alex Afanasyev
31
32
## Current usage in ndnSIM
33
34
ID         | Tag
35
---------- | ----------------------
36
0xaee87802 | ns3::ndn::Ns3PacketTag