ndn::tlv::nlsr Namespace Reference

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...
 

Enumeration Type Documentation

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.

Enumerator
LsaInfo 
OriginRouter 
SequenceNumber 
AdjacencyLsa 
Adjacency 
CoordinateLsa 
Double 
HyperbolicRadius 
HyperbolicAngle 
NameLsa 
LsdbStatus 
ExpirationPeriod 
Cost 
Uri 
Destination 
NextHop 
RoutingTable 
RouteTableEntry 

Definition at line 37 of file tlv-nlsr.hpp.

Function Documentation

template<ndn::encoding::Tag TAG>
size_t ndn::tlv::nlsr::prependDouble ( ndn::EncodingImpl< TAG > &  encoder,
uint32_t  type,
double  value 
)
inline

Prepend a TLV element containing a double.

Parameters
encoderan EncodingBuffer or EncodingEstimator
typeTLV-TYPE number
valuedouble value

Definition at line 85 of file tlv-nlsr.hpp.

Here is the caller graph for this function:

double ndn::tlv::nlsr::readDouble ( const ndn::Block &  block)
inline

Read a double from a TLV element.

Parameters
blockthe TLV element
Exceptions
ndn::tlv::Errorblock does not contain a double
See also
prependDouble

Definition at line 64 of file tlv-nlsr.hpp.

Here is the caller graph for this function: