readvertise a subset of routes to a destination according to a policy More...
#include <readvertise.hpp>
Public Member Functions | |
Readvertise (Rib &rib, unique_ptr< ReadvertisePolicy > policy, unique_ptr< ReadvertiseDestination > destination) | |
readvertise a subset of routes to a destination according to a policy
The Readvertise class allows RIB routes to be readvertised to a destination such as a routing protocol daemon or another NFD-RIB. It monitors the RIB for route additions and removals, asks the ReadvertisePolicy to make decision on whether to readvertise each new route and what prefix to readvertise as, and invokes a ReadvertiseDestination to send the commands.
Definition at line 44 of file readvertise.hpp.
nfd::rib::Readvertise::Readvertise | ( | Rib & | rib, |
unique_ptr< ReadvertisePolicy > | policy, | ||
unique_ptr< ReadvertiseDestination > | destination | ||
) |
Definition at line 48 of file readvertise.cpp.
References nfd::rib::Rib::afterAddRoute, nfd::rib::Rib::beforeRemoveRoute, nfd::rib::RibRouteRef::entry, nfd::getScheduler(), NFD_LOG_DEBUG, NFD_LOG_WARN, nfd::rib::randomizeTimer(), and nfd::rib::RibRouteRef::route.