ndn-embeds 0.1.0
Lightweight NDN protocol stack for embedded systems
Loading...
Searching...
No Matches
ndn::tlv Namespace Reference

TLV Type number definitions. More...

Variables

Packet types
constexpr uint32_t Interest = 0x05
 Interest packet.
 
constexpr uint32_t Data = 0x06
 Data packet.
 
Common fields
constexpr uint32_t Name = 0x07
 Name.
 
Name components
constexpr uint32_t GenericNameComponent = 0x08
 Generic Name component.
 
constexpr uint32_t ImplicitSha256Digest = 0x01
 Implicit SHA-256 digest.
 
constexpr uint32_t ParametersSha256Digest = 0x02
 Parameters SHA-256 digest.
 
Interest packet fields
constexpr uint32_t CanBePrefix = 0x21
 CanBePrefix flag.
 
constexpr uint32_t MustBeFresh = 0x12
 MustBeFresh flag.
 
constexpr uint32_t ForwardingHint = 0x1e
 Forwarding hint.
 
constexpr uint32_t Nonce = 0x0a
 Nonce (for loop detection)
 
constexpr uint32_t InterestLifetime = 0x0c
 Interest lifetime.
 
constexpr uint32_t HopLimit = 0x22
 Hop limit.
 
constexpr uint32_t ApplicationParameters = 0x24
 Application parameters.
 
Data packet fields
constexpr uint32_t MetaInfo = 0x14
 Meta information.
 
constexpr uint32_t Content = 0x15
 Content.
 
constexpr uint32_t SignatureInfo = 0x16
 Signature info.
 
constexpr uint32_t SignatureValue = 0x17
 Signature value.
 
MetaInfo fields
constexpr uint32_t ContentType = 0x18
 Content type.
 
constexpr uint32_t FreshnessPeriod = 0x19
 Freshness period.
 
constexpr uint32_t FinalBlockId = 0x1a
 Final block ID.
 
SignatureInfo sub-fields
constexpr uint32_t SignatureType = 0x1b
 Signature type.
 
constexpr uint32_t KeyLocator = 0x1c
 Key locator.
 
constexpr uint32_t KeyDigest = 0x1d
 Key digest.
 
Interest signature fields (for future use)
constexpr uint32_t SignatureNonce = 0x26
 Signature nonce.
 
constexpr uint32_t SignatureTime = 0x28
 Signature timestamp.
 
constexpr uint32_t SignatureSeqNum = 0x2a
 Signature sequence number.
 
constexpr uint32_t InterestSignatureInfo = 0x2c
 Interest signature info.
 
constexpr uint32_t InterestSignatureValue = 0x2e
 Interest signature value.
 
Certificate-related fields
constexpr uint32_t ValidityPeriod = 0xfd
 Validity period (253)
 
constexpr uint32_t NotBefore = 0xfe
 Not before (254)
 
constexpr uint32_t NotAfter = 0xff
 Not after (255)
 

Detailed Description

TLV Type number definitions.

Standard TLV Type numbers used in NDN packets.

Variable Documentation

◆ ApplicationParameters

constexpr uint32_t ndn::tlv::ApplicationParameters = 0x24
constexpr

Application parameters.

Definition at line 54 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ CanBePrefix

constexpr uint32_t ndn::tlv::CanBePrefix = 0x21
constexpr

CanBePrefix flag.

Definition at line 48 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ Content

constexpr uint32_t ndn::tlv::Content = 0x15
constexpr

Content.

Definition at line 61 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ ContentType

constexpr uint32_t ndn::tlv::ContentType = 0x18
constexpr

Content type.

Definition at line 69 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ Data

constexpr uint32_t ndn::tlv::Data = 0x06
constexpr

Data packet.

Definition at line 28 of file tlv.hpp.

Referenced by ndn::Certificate::encode(), ndn::Data::encode(), and ndn::Data::fromWire().

◆ FinalBlockId

constexpr uint32_t ndn::tlv::FinalBlockId = 0x1a
constexpr

Final block ID.

Definition at line 71 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ ForwardingHint

constexpr uint32_t ndn::tlv::ForwardingHint = 0x1e
constexpr

Forwarding hint.

Definition at line 50 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ FreshnessPeriod

constexpr uint32_t ndn::tlv::FreshnessPeriod = 0x19
constexpr

Freshness period.

Definition at line 70 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ GenericNameComponent

constexpr uint32_t ndn::tlv::GenericNameComponent = 0x08
constexpr

Generic Name component.

Definition at line 40 of file tlv.hpp.

Referenced by ndn::Name::fromWire().

◆ HopLimit

constexpr uint32_t ndn::tlv::HopLimit = 0x22
constexpr

Hop limit.

Definition at line 53 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ ImplicitSha256Digest

constexpr uint32_t ndn::tlv::ImplicitSha256Digest = 0x01
constexpr

Implicit SHA-256 digest.

Definition at line 41 of file tlv.hpp.

◆ Interest

constexpr uint32_t ndn::tlv::Interest = 0x05
constexpr

Interest packet.

Definition at line 27 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ InterestLifetime

constexpr uint32_t ndn::tlv::InterestLifetime = 0x0c
constexpr

Interest lifetime.

Definition at line 52 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ InterestSignatureInfo

constexpr uint32_t ndn::tlv::InterestSignatureInfo = 0x2c
constexpr

Interest signature info.

Definition at line 88 of file tlv.hpp.

Referenced by ndn::Interest::fromWire().

◆ InterestSignatureValue

constexpr uint32_t ndn::tlv::InterestSignatureValue = 0x2e
constexpr

Interest signature value.

Definition at line 89 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ KeyDigest

constexpr uint32_t ndn::tlv::KeyDigest = 0x1d
constexpr

Key digest.

Definition at line 79 of file tlv.hpp.

◆ KeyLocator

constexpr uint32_t ndn::tlv::KeyLocator = 0x1c
constexpr

Key locator.

Definition at line 78 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ MetaInfo

constexpr uint32_t ndn::tlv::MetaInfo = 0x14
constexpr

Meta information.

Definition at line 60 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ MustBeFresh

constexpr uint32_t ndn::tlv::MustBeFresh = 0x12
constexpr

MustBeFresh flag.

Definition at line 49 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ Name

constexpr uint32_t ndn::tlv::Name = 0x07
constexpr

◆ Nonce

constexpr uint32_t ndn::tlv::Nonce = 0x0a
constexpr

Nonce (for loop detection)

Definition at line 51 of file tlv.hpp.

Referenced by ndn::Interest::encode(), and ndn::Interest::fromWire().

◆ NotAfter

constexpr uint32_t ndn::tlv::NotAfter = 0xff
constexpr

Not after (255)

Definition at line 97 of file tlv.hpp.

Referenced by ndn::ValidityPeriod::encode(), and ndn::ValidityPeriod::fromWire().

◆ NotBefore

constexpr uint32_t ndn::tlv::NotBefore = 0xfe
constexpr

Not before (254)

Definition at line 96 of file tlv.hpp.

Referenced by ndn::ValidityPeriod::encode(), and ndn::ValidityPeriod::fromWire().

◆ ParametersSha256Digest

constexpr uint32_t ndn::tlv::ParametersSha256Digest = 0x02
constexpr

Parameters SHA-256 digest.

Definition at line 42 of file tlv.hpp.

◆ SignatureInfo

constexpr uint32_t ndn::tlv::SignatureInfo = 0x16
constexpr

Signature info.

Definition at line 62 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ SignatureNonce

constexpr uint32_t ndn::tlv::SignatureNonce = 0x26
constexpr

Signature nonce.

Definition at line 85 of file tlv.hpp.

◆ SignatureSeqNum

constexpr uint32_t ndn::tlv::SignatureSeqNum = 0x2a
constexpr

Signature sequence number.

Definition at line 87 of file tlv.hpp.

◆ SignatureTime

constexpr uint32_t ndn::tlv::SignatureTime = 0x28
constexpr

Signature timestamp.

Definition at line 86 of file tlv.hpp.

◆ SignatureType

constexpr uint32_t ndn::tlv::SignatureType = 0x1b
constexpr

Signature type.

Definition at line 77 of file tlv.hpp.

Referenced by ndn::Data::fromWire().

◆ SignatureValue

constexpr uint32_t ndn::tlv::SignatureValue = 0x17
constexpr

Signature value.

Definition at line 63 of file tlv.hpp.

Referenced by ndn::Certificate::encode(), ndn::Data::encode(), and ndn::Data::fromWire().

◆ ValidityPeriod

constexpr uint32_t ndn::tlv::ValidityPeriod = 0xfd
constexpr

Validity period (253)

Definition at line 95 of file tlv.hpp.

Referenced by ndn::ValidityPeriod::encode(), and ndn::ValidityPeriod::fromWire().