#include <lsa.hpp>
Definition at line 232 of file lsa.hpp.
Enumerator |
---|
ADJACENCY |
|
COORDINATE |
|
NAME |
|
BASE |
|
MOCK |
|
Definition at line 41 of file lsa.hpp.
nlsr::AdjLsa::AdjLsa |
( |
const ndn::Name & |
origR, |
|
|
uint32_t |
lsn, |
|
|
const ndn::time::system_clock::TimePoint & |
lt, |
|
|
uint32_t |
nl, |
|
|
AdjacencyList & |
adl |
|
) |
| |
void nlsr::AdjLsa::addAdjacent |
( |
Adjacent |
adj | ) |
|
|
inline |
void nlsr::AdjLsa::addNptEntries |
( |
Nlsr & |
pnlsr | ) |
|
Installs this LSA's name prefixes into the NPT.
- Parameters
-
pnlsr | The NLSR top-level whose NPT you want to install the entries into. |
Definition at line 264 of file lsa.cpp.
bool nlsr::AdjLsa::deserialize |
( |
const std::string & |
content | ) |
|
|
overridevirtualnoexcept |
Initializes this adj. LSA from the supplied content.
- Parameters
-
content | The content that this LSA is to have, formatted according to getData(). |
Implements nlsr::Lsa.
Definition at line 235 of file lsa.cpp.
bool nlsr::Lsa::deserializeCommon |
( |
boost::tokenizer< boost::char_separator< char >>::iterator & |
iterator | ) |
|
|
protectedinherited |
std::string nlsr::Lsa::getData |
( |
| ) |
const |
|
protectedinherited |
Get data common to all LSA types.
This method should be called by all LSA classes in their serialize() method.
Definition at line 41 of file lsa.cpp.
const ndn::time::system_clock::TimePoint& nlsr::Lsa::getExpirationTimePoint |
( |
| ) |
const |
|
inlineinherited |
ndn::EventId nlsr::Lsa::getExpiringEventId |
( |
| ) |
const |
|
inlineinherited |
const ndn::Name nlsr::Lsa::getKey |
( |
| ) |
const |
|
inherited |
Gets the key for this LSA.
Format is: <router name>/<LSA type>\
Definition at line 50 of file lsa.cpp.
uint32_t nlsr::Lsa::getLsSeqNo |
( |
| ) |
const |
|
inlineinherited |
uint32_t nlsr::AdjLsa::getNoLink |
( |
| ) |
|
|
inline |
const ndn::Name& nlsr::Lsa::getOrigRouter |
( |
| ) |
const |
|
inlineinherited |
bool nlsr::AdjLsa::isEqualContent |
( |
AdjLsa & |
alsa | ) |
|
void nlsr::AdjLsa::removeNptEntries |
( |
Nlsr & |
pnlsr | ) |
|
std::string nlsr::AdjLsa::serialize |
( |
| ) |
const |
|
overridevirtual |
Returns the data this adjacency LSA has.
The format is: <original router>|adjacency|<seq. no.>|<exp. time>|<size>|<adjacency prefix 1>|<face uri 1>|<cost 1>|...|<adjacency prefix n>|<face uri n>|<cost n>|
Implements nlsr::Lsa.
Definition at line 222 of file lsa.cpp.
void nlsr::Lsa::setExpirationTimePoint |
( |
const ndn::time::system_clock::TimePoint & |
lt | ) |
|
|
inlineinherited |
void nlsr::Lsa::setExpiringEventId |
( |
const ndn::EventId |
leei | ) |
|
|
inlineinherited |
void nlsr::Lsa::setLsSeqNo |
( |
uint32_t |
lsn | ) |
|
|
inlineinherited |
void nlsr::Lsa::setOrigRouter |
( |
const ndn::Name & |
org | ) |
|
|
inlineinherited |
std::string nlsr::Lsa::toString |
( |
| ) |
const |
|
protectedinherited |
Print data common to all LSA types.
Definition at line 365 of file lsa.cpp.
void nlsr::AdjLsa::writeLog |
( |
| ) |
const |
|
overridevirtual |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const AdjLsa & |
lsa |
|
) |
| |
|
friend |
ndn::time::system_clock::TimePoint nlsr::Lsa::m_expirationTimePoint |
|
protectedinherited |
ndn::EventId nlsr::Lsa::m_expiringEventId |
|
protectedinherited |
uint32_t nlsr::Lsa::m_lsSeqNo |
|
protectedinherited |
ndn::Name nlsr::Lsa::m_origRouter |
|
protectedinherited |