a policy to readvertise routes registered by local applications into remote gateway More...
#include <host-to-gateway-readvertise-policy.hpp>
Public Member Functions | |
HostToGatewayReadvertisePolicy (const ndn::KeyChain &keyChain, const ConfigSection §ion) | |
optional< ReadvertiseAction > | handleNewRoute (const RibRouteRef &ribRoute) const override |
decide whether to readvertise a route, and what prefix to readvertise More... | |
time::milliseconds | getRefreshInterval () const override |
Public Member Functions inherited from nfd::rib::ReadvertisePolicy | |
virtual | ~ReadvertisePolicy ()=default |
a policy to readvertise routes registered by local applications into remote gateway
Definition at line 39 of file host-to-gateway-readvertise-policy.hpp.
nfd::rib::HostToGatewayReadvertisePolicy::HostToGatewayReadvertisePolicy | ( | const ndn::KeyChain & | keyChain, |
const ConfigSection & | section | ||
) |
Definition at line 39 of file host-to-gateway-readvertise-policy.cpp.
References nfd::rib::DEFAULT_REFRESH_INTERVAL.
|
overridevirtual |
decide whether to readvertise a route, and what prefix to readvertise
Implements nfd::rib::ReadvertisePolicy.
Definition at line 48 of file host-to-gateway-readvertise-policy.cpp.
References nfd::rib::RibRouteRef::entry, ndn::security::pib::Pib::getIdentities(), ndn::security::pib::Identity::getName(), ndn::security::v2::KeyChain::getPib(), ndn::Name::getPrefix(), nfd::rib::IGNORE_COMPONENT, nfd::rib::RibManager::LOCALHOP_TOP_PREFIX, nfd::scope_prefix::LOCALHOST, nonstd::optional_lite::nullopt, and ndn::security::signingByIdentity().
|
overridevirtual |
Implements nfd::rib::ReadvertisePolicy.
Definition at line 85 of file host-to-gateway-readvertise-policy.cpp.