#include <routing-table.hpp>
Definition at line 40 of file routing-table.hpp.
nlsr::RoutingTable::RoutingTable |
( |
ndn::Scheduler & |
scheduler | ) |
|
void nlsr::RoutingTable::addNextHop |
( |
const ndn::Name & |
destRouter, |
|
|
NextHop & |
nh |
|
) |
| |
Adds a next hop to a routing table entry.
- Parameters
-
destRouter | The destination router whose RTE we want to modify. |
nh | The next hop to add to the RTE. |
Definition at line 192 of file routing-table.cpp.
void nlsr::RoutingTable::addNextHopToDryTable |
( |
const ndn::Name & |
destRouter, |
|
|
NextHop & |
nh |
|
) |
| |
Adds a next hop to a routing table entry in a dry run scenario.
- Parameters
-
destRouter | The destination router whose RTE we want to modify. |
nh | The next hop to add to the router. |
Definition at line 243 of file routing-table.cpp.
void nlsr::RoutingTable::calculate |
( |
Nlsr & |
pnlsr | ) |
|
Calculates a list of next hops for each router in the network.
- Parameters
-
pnlsr | The NLSR object that contains the LSAs needed for adj. info. |
Calculates the list of next hops to every other router in the network.
Definition at line 46 of file routing-table.cpp.
RoutingTableEntry * nlsr::RoutingTable::findRoutingTableEntry |
( |
const ndn::Name & |
destRouter | ) |
|
int nlsr::RoutingTable::getNoNextHop |
( |
| ) |
|
|
inline |
const ndn::time::seconds& nlsr::RoutingTable::getRoutingCalcInterval |
( |
| ) |
const |
|
inline |
void nlsr::RoutingTable::scheduleRoutingTableCalculation |
( |
Nlsr & |
pnlsr | ) |
|
Schedules a calculation event in the event scheduler only if one isn't already scheduled.
- Parameters
-
pnlsr | The NLSR whose scheduling status is needed. |
Definition at line 173 of file routing-table.cpp.
void nlsr::RoutingTable::setRoutingCalcInterval |
( |
uint32_t |
interval | ) |
|
|
inline |