Enumerations | |
enum | { LsaInfo = 128, OriginRouter = 129, SequenceNumber = 130, AdjacencyLsa = 131, Adjacency = 132, CoordinateLsa = 133, Double = 134, HyperbolicRadius = 135, HyperbolicAngle = 136, NameLsa = 137, LsdbStatus = 138, ExpirationPeriod = 139, Cost = 140, Uri = 141, Destination = 142, NextHop = 143, RoutingTable = 144, RouteTableEntry = 145 } |
Functions | |
double | readDouble (const ndn::Block &block) |
Read a double from a TLV element. More... | |
template<ndn::encoding::Tag TAG> | |
size_t | prependDouble (ndn::EncodingImpl< TAG > &encoder, uint32_t type, double value) |
Prepend a TLV element containing a double. More... | |
anonymous enum |
The TLV block types that NLSR uses to encode/decode LSA types. The way NLSR encodes LSAs to TLV is by encoding each element of the LSA as a separate TLV block. So, block types are needed. These are used in the LSDB Status Dataset.
Definition at line 37 of file tlv-nlsr.hpp.
|
inline |
Prepend a TLV element containing a double.
encoder | an EncodingBuffer or EncodingEstimator |
type | TLV-TYPE number |
value | double value |
Definition at line 85 of file tlv-nlsr.hpp.
|
inline |
Read a double from a TLV element.
block | the TLV element |
ndn::tlv::Error | block does not contain a double |
Definition at line 64 of file tlv-nlsr.hpp.