represents a route for a name prefix More...
#include <route.hpp>
Public Member Functions | |
Route ()=default | |
default constructor More... | |
Route (const ndn::PrefixAnnouncement &ann, uint64_t faceId) | |
construct from a prefix announcement More... | |
const scheduler::EventId & | getExpirationEvent () const |
void | setExpirationEvent (const scheduler::EventId &eid) |
void | cancelExpirationEvent () |
std::underlying_type_t< ndn::nfd::RouteFlags > | getFlags () const |
Public Member Functions inherited from ndn::nfd::RouteFlagsTraits< Route > | |
bool | isChildInherit () const |
bool | isRibCapture () const |
Public Attributes | |
uint64_t | faceId = 0 |
ndn::nfd::RouteOrigin | origin = ndn::nfd::ROUTE_ORIGIN_APP |
uint64_t | cost = 0 |
std::underlying_type_t< ndn::nfd::RouteFlags > | flags = ndn::nfd::ROUTE_FLAGS_NONE |
optional< time::steady_clock::time_point > | expires |
optional< ndn::PrefixAnnouncement > | announcement |
The prefix announcement that caused the creation of this route. More... | |
time::steady_clock::time_point | annExpires |
Expiration time of the prefix announcement. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::nfd::RouteFlagsTraits< Route > | |
RouteFlagsTraits ()=default | |
|
default |
default constructor
nfd::rib::Route::Route | ( | const ndn::PrefixAnnouncement & | ann, |
uint64_t | faceId | ||
) |
|
inline |
|
inline |
Definition at line 63 of file route.hpp.
Referenced by nfd::RibManager::enableLocalFields().
|
inline |
Definition at line 69 of file route.hpp.
References ndn::detail::CancelHandle::cancel().
|
inline |
uint64_t nfd::rib::Route::faceId = 0 |
Definition at line 81 of file route.hpp.
Referenced by nfd::rib::RibUpdateBatch::add(), nfd::rib::Rib::beginRemoveFailedFaces(), nfd::rib::compareFaceIdAndOrigin(), nfd::rib::FibUpdater::computeAndSendFibUpdates(), nfd::RibManager::enableLocalFields(), nfd::rib::RibEntry::findInheritedRoute(), nfd::rib::Rib::insert(), nfd::rib::operator<<(), nfd::rib::operator==(), nfd::rib::RibEntry::removeInheritedRoute(), nfd::RibManager::slRenew(), and nfd::rib::sortRoutes().
ndn::nfd::RouteOrigin nfd::rib::Route::origin = ndn::nfd::ROUTE_ORIGIN_APP |
Definition at line 82 of file route.hpp.
Referenced by nfd::rib::compareFaceIdAndOrigin(), nfd::RibManager::enableLocalFields(), nfd::rib::operator<<(), nfd::rib::operator==(), and nfd::RibManager::slRenew().
uint64_t nfd::rib::Route::cost = 0 |
Definition at line 83 of file route.hpp.
Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), nfd::RibManager::enableLocalFields(), nfd::rib::RibEntry::getRouteWithLowestCostAndChildInheritByFaceId(), nfd::rib::RibEntry::getRouteWithLowestCostByFaceId(), nfd::rib::RibEntry::getRouteWithSecondLowestCostByFaceId(), nfd::rib::operator<<(), and nfd::rib::operator==().
std::underlying_type_t<ndn::nfd::RouteFlags> nfd::rib::Route::flags = ndn::nfd::ROUTE_FLAGS_NONE |
Definition at line 84 of file route.hpp.
Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), nfd::RibManager::enableLocalFields(), getFlags(), nfd::rib::RibEntry::insertRoute(), nfd::rib::operator<<(), and nfd::rib::operator==().
optional<time::steady_clock::time_point> nfd::rib::Route::expires |
Definition at line 85 of file route.hpp.
Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), nfd::RibManager::enableLocalFields(), nfd::rib::RibEntry::getPrefixAnnouncement(), nfd::rib::operator<<(), nfd::rib::operator==(), nfd::RibManager::slAnnounce(), and nfd::RibManager::slRenew().
optional<ndn::PrefixAnnouncement> nfd::rib::Route::announcement |
The prefix announcement that caused the creation of this route.
This is nullopt if this route is not created by a prefix announcement.
Definition at line 91 of file route.hpp.
Referenced by nfd::rib::RibEntry::getPrefixAnnouncement(), nfd::rib::operator<<(), nfd::rib::operator==(), and nfd::RibManager::slRenew().
time::steady_clock::time_point nfd::rib::Route::annExpires |
Expiration time of the prefix announcement.
Valid only if announcement is not nullopt.
If this field is before or equal the current time, it indicates the prefix announcement is not yet valid or has expired. In this case, the exact value of this field does not matter. If this field is after the current time, it indicates when the prefix announcement expires.
Definition at line 101 of file route.hpp.
Referenced by nfd::RibManager::slAnnounce(), and nfd::RibManager::slRenew().