Contains classes and functions related to NDNLPv2. More...
Namespaces | |
field_location_tags | |
Indicates where a field may occur. | |
tlv | |
Contains constants related to the NDNLPv2 packet format. | |
Enumerations | |
enum class | CachePolicyType { NONE = 0 , NO_CACHE = 1 } |
Indicates the cache policy applied to a Data packet. More... | |
enum class | NackReason { NONE = 0 , CONGESTION = 50 , DUPLICATE = 100 , NO_ROUTE = 150 } |
Indicates the reason type of a Network Nack. More... | |
Functions | |
template size_t | CachePolicy ::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
template size_t | CachePolicy ::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
bool | isLessSevere (lp::NackReason x, lp::NackReason y) |
Compare NackReason according to severity. More... | |
template size_t | NackHeader ::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
template size_t | NackHeader ::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
std::ostream & | operator<< (std::ostream &os, CachePolicyType policy) |
std::ostream & | operator<< (std::ostream &os, const PitToken &pitToken) |
std::ostream & | operator<< (std::ostream &os, NackReason reason) |
template size_t | PrefixAnnouncementHeader ::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
template size_t | PrefixAnnouncementHeader ::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
Contains classes and functions related to NDNLPv2.
typedef FieldDecl<field_location_tags::Header, Sequence, tlv::Ack, true> ndn::lp::AckField |
Definition at line 99 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, CachePolicy, tlv::CachePolicy> ndn::lp::CachePolicyField |
Definition at line 77 of file fields.hpp.
using ndn::lp::CachePolicyTag = typedef SimpleTag<CachePolicy, 12> |
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::CongestionMark, false, NonNegativeIntegerTag, NonNegativeIntegerTag> ndn::lp::CongestionMarkField |
Definition at line 93 of file fields.hpp.
using ndn::lp::CongestionMarkTag = typedef SimpleTag<uint64_t, 13> |
Set of all field declarations.
Definition at line 144 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::FragCount, false, NonNegativeIntegerTag, NonNegativeIntegerTag> ndn::lp::FragCountField |
Definition at line 54 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::FragIndex, false, NonNegativeIntegerTag, NonNegativeIntegerTag> ndn::lp::FragIndexField |
Definition at line 46 of file fields.hpp.
typedef FieldDecl<field_location_tags::Fragment, std::pair<Buffer::const_iterator, Buffer::const_iterator>, tlv::Fragment> ndn::lp::FragmentField |
Declare the Fragment field.
The fragment (i.e. payload) is the bytes between two provided iterators. During encoding, these bytes are copied from the Buffer into the LpPacket.
Definition at line 124 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::IncomingFaceId, false, NonNegativeIntegerTag, NonNegativeIntegerTag> ndn::lp::IncomingFaceIdField |
Definition at line 85 of file fields.hpp.
using ndn::lp::IncomingFaceIdTag = typedef SimpleTag<uint64_t, 10> |
Definition at line 64 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::NextHopFaceId, false, NonNegativeIntegerTag, NonNegativeIntegerTag> ndn::lp::NextHopFaceIdField |
Definition at line 72 of file fields.hpp.
using ndn::lp::NextHopFaceIdTag = typedef SimpleTag<uint64_t, 11> |
typedef FieldDecl<field_location_tags::Header, EmptyValue, tlv::NonDiscovery> ndn::lp::NonDiscoveryField |
Definition at line 109 of file fields.hpp.
using ndn::lp::NonDiscoveryTag = typedef SimpleTag<EmptyValue, 14> |
typedef FieldDecl<field_location_tags::Header, std::pair<Buffer::const_iterator, Buffer::const_iterator>, tlv::PitToken> ndn::lp::PitTokenField |
Definition at line 59 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, PrefixAnnouncementHeader, tlv::PrefixAnnouncement> ndn::lp::PrefixAnnouncementField |
Definition at line 114 of file fields.hpp.
using ndn::lp::PrefixAnnouncementTag = typedef SimpleTag<PrefixAnnouncementHeader, 15> |
typedef uint64_t ndn::lp::Sequence |
Represents a sequence number.
Definition at line 35 of file sequence.hpp.
Definition at line 38 of file fields.hpp.
Definition at line 104 of file fields.hpp.
|
strong |
Indicates the cache policy applied to a Data packet.
Enumerator | |
---|---|
NONE | |
NO_CACHE |
Definition at line 36 of file cache-policy.hpp.
|
strong |
Indicates the reason type of a Network Nack.
Enumerator | |
---|---|
NONE | |
CONGESTION | |
DUPLICATE | |
NO_ROUTE |
Definition at line 37 of file nack-header.hpp.
template size_t ndn::lp::CachePolicy ::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
template size_t ndn::lp::CachePolicy ::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
bool ndn::lp::isLessSevere | ( | lp::NackReason | x, |
lp::NackReason | y | ||
) |
Compare NackReason according to severity.
NackReason::NONE is treated as most severe.
Definition at line 45 of file nack-header.cpp.
template size_t ndn::lp::NackHeader ::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
template size_t ndn::lp::NackHeader ::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
std::ostream & ndn::lp::operator<< | ( | std::ostream & | os, |
CachePolicyType | policy | ||
) |
Definition at line 30 of file cache-policy.cpp.
std::ostream & ndn::lp::operator<< | ( | std::ostream & | os, |
const PitToken & | pitToken | ||
) |
Definition at line 41 of file pit-token.cpp.
std::ostream & ndn::lp::operator<< | ( | std::ostream & | os, |
NackReason | reason | ||
) |
Definition at line 29 of file nack-header.cpp.
template size_t ndn::lp::PrefixAnnouncementHeader ::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
template size_t ndn::lp::PrefixAnnouncementHeader ::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |