#include <rib-manager.hpp>
Classes | |
class | Error |
Public Member Functions | |
RibManager (ndn::Face &face, ndn::KeyChain &keyChain) | |
~RibManager () | |
void | registerWithNfd () |
void | enableLocalControlHeader () |
void | setConfigFile (ConfigFile &configFile) |
void | onRibUpdateSuccess (const RibUpdate &update) |
void | onRibUpdateFailure (const RibUpdate &update, uint32_t code, const std::string &error) |
Definition at line 51 of file rib-manager.hpp.
nfd::rib::RibManager::RibManager | ( | ndn::Face & | face, |
ndn::KeyChain & | keyChain | ||
) |
Definition at line 76 of file rib-manager.cpp.
Referenced by nfd::rib::RibManager::Error::Error().
nfd::rib::RibManager::~RibManager | ( | ) |
Definition at line 96 of file rib-manager.cpp.
References nfd::scheduler::cancel(), ndn::tlv::nfd::ControlParameters, NFD_LOG_INFO, ndn::Face::setInterestFilter(), and ndn::nfd::Controller::start().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::registerWithNfd | ( | ) |
Definition at line 117 of file rib-manager.cpp.
References NFD_LOG_INFO, ndn::util::NotificationSubscriber< Notification >::onNotification, ndn::Name::size(), and ndn::util::NotificationSubscriber< Notification >::start().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::enableLocalControlHeader | ( | ) |
Definition at line 605 of file rib-manager.cpp.
References ndn::Name::appendSegment(), nfd::rib::Rib::beginRemoveFace(), nfd::scheduler::cancel(), ndn::tlv::nfd::ControlParameters, ndn::name::Component::empty(), ndn::Face::expressInterest(), ndn::nfd::FACE_EVENT_DESTROYED, ndn::Block::fromBuffer(), ndn::Name::get(), ndn::Data::getContent(), ndn::nfd::FaceTraits< C >::getFaceId(), ndn::MetaInfo::getFinalBlockId(), ndn::nfd::FaceEventNotification::getKind(), ndn::Data::getMetaInfo(), ndn::Data::getName(), ndn::Interest::getName(), ndn::Name::getPrefix(), ndn::Name::isPrefixOf(), ndn::nfd::LOCAL_CONTROL_FEATURE_INCOMING_FACE_ID, NFD_LOG_DEBUG, NFD_LOG_TRACE, nfd::SegmentPublisher< FaceBase >::publish(), nfd::scheduler::schedule(), ndn::Interest::setChildSelector(), ndn::Interest::setMustBeFresh(), ndn::Block::size(), ndn::Name::size(), ndn::nfd::Controller::start(), ndn::name::Component::toSegment(), ndn::Block::value(), and ndn::Block::value_size().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::setConfigFile | ( | ConfigFile & | configFile | ) |
Definition at line 137 of file rib-manager.cpp.
References nfd::ConfigFile::addSectionHandler(), ndn::nfd::ControlCommand::applyDefaultsToRequest(), nfd::rib::Rib::beginApplyUpdate(), ndn::Block::blockFromValue(), nfd::rib::Route::cost, nfd::rib::AutoPrefixPropagator::disable(), nfd::rib::AutoPrefixPropagator::enable(), nfd::rib::Route::expires, nfd::rib::Route::faceId, nfd::rib::Route::flags, ndn::Name::get(), ndn::nfd::ControlParameters::getCost(), ndn::nfd::ControlParameters::getExpirationPeriod(), ndn::nfd::ControlParameters::getFaceId(), ndn::nfd::ControlParameters::getFlags(), ndn::nfd::ControlParameters::getName(), ndn::Interest::getName(), ndn::nfd::ControlParameters::getOrigin(), ndn::nfd::ControlParameters::hasExpirationPeriod(), ndn::nfd::ControlParameters::hasFaceId(), ndn::nfd::ControlParameters::hasOrigin(), ndn::ValidatorConfig::load(), nfd::rib::AutoPrefixPropagator::loadConfig(), NFD_LOG_DEBUG, NFD_LOG_ERROR, NFD_LOG_INFO, NFD_LOG_TRACE, ndn::time::steady_clock::now(), onRibUpdateFailure(), onRibUpdateSuccess(), nfd::rib::Rib::onRouteExpiration(), nfd::rib::Route::origin, ndn::Face::put(), nfd::rib::RibUpdate::REGISTER, nfd::scheduler::schedule(), nfd::rib::RibUpdate::setAction(), ndn::mgmt::ControlResponse::setBody(), ndn::mgmt::ControlResponse::setCode(), nfd::rib::Route::setExpirationEvent(), ndn::nfd::ControlParameters::setFaceId(), nfd::rib::RibUpdate::setName(), ndn::nfd::ControlParameters::setName(), ndn::nfd::ControlParameters::setOrigin(), ndn::mgmt::ControlResponse::setText(), ndn::security::KeyChain::sign(), ndn::Name::size(), nfd::rib::RibUpdate::UNREGISTER, ndn::Validator::validate(), ndn::nfd::ControlCommand::validateRequest(), ndn::nfd::ControlParameters::wireDecode(), ndn::mgmt::ControlResponse::wireEncode(), and ndn::nfd::ControlParameters::wireEncode().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::onRibUpdateSuccess | ( | const RibUpdate & | update | ) |
Definition at line 550 of file rib-manager.cpp.
References NFD_LOG_DEBUG.
Referenced by nfd::rib::RibManager::Error::Error(), and setConfigFile().
void nfd::rib::RibManager::onRibUpdateFailure | ( | const RibUpdate & | update, |
uint32_t | code, | ||
const std::string & | error | ||
) |
Definition at line 556 of file rib-manager.cpp.
References nfd::rib::Route::faceId, ndn::nfd::ControlParameters::getFaceId(), nfd::rib::Rib::insert(), NFD_LOG_DEBUG, ndn::nfd::ROUTE_FLAG_CHILD_INHERIT, ndn::nfd::ROUTE_ORIGIN_APP, and ndn::Name::toUri().
Referenced by nfd::rib::RibManager::Error::Error(), and setConfigFile().