Implements the FIB Management of NFD Management Protocol. More...
#include <fib-manager.hpp>
Public Member Functions | |
FibManager (fib::Fib &fib, const FaceTable &faceTable, Dispatcher &dispatcher, CommandAuthenticator &authenticator) | |
Public Member Functions inherited from nfd::ManagerBase | |
virtual | ~ManagerBase () |
const std::string & | getModule () const |
Additional Inherited Members | |
Protected Member Functions inherited from nfd::ManagerBase | |
ManagerBase (const std::string &module, Dispatcher &dispatcher) | |
ManagerBase (const std::string &module, Dispatcher &dispatcher, CommandAuthenticator &authenticator) | |
template<typename Command > | |
void | registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler) |
void | registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler) |
ndn::mgmt::PostNotification | registerNotificationStream (const std::string &verb) |
PartialName | makeRelPrefix (const std::string &verb) |
Generates the relative prefix for a handler by appending the verb name to the module name. More... | |
Static Protected Member Functions inherited from nfd::ManagerBase | |
static bool | validateParameters (const ControlCommand &command, const ndn::mgmt::ControlParameters ¶meters) |
Validates the parameters for a given command . More... | |
static void | handleCommand (shared_ptr< ControlCommand > command, const ControlCommandHandler &handler, const Name &prefix, const Interest &interest, const ndn::mgmt::ControlParameters ¶ms, const ndn::mgmt::CommandContinuation &done) |
Handles a control command. More... | |
Protected Attributes inherited from nfd::ManagerBase | |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED | __pad0__: using ControlCommandHandler = std::function<void(const ControlCommand& command |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name & | prefix |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest & | interest |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest const ControlParameters & | parameters |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest const ControlParameters const ndn::mgmt::CommandContinuation | done |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED | __pad1__: static void extractRequester(const Interest& interest |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const ndn::mgmt::AcceptContinuation & | accept |
NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE | __pad2__: virtual ndn::mgmt::Authorization makeAuthorization(const std::string& verb) |
Implements the FIB Management of NFD Management Protocol.
Definition at line 43 of file fib-manager.hpp.
nfd::FibManager::FibManager | ( | fib::Fib & | fib, |
const FaceTable & | faceTable, | ||
Dispatcher & | dispatcher, | ||
CommandAuthenticator & | authenticator | ||
) |
Definition at line 41 of file fib-manager.cpp.
References nfd::fib::Fib::addOrUpdateNextHop(), ndn::mgmt::StatusDatasetContext::append(), nfd::ManagerBase::done, ndn::mgmt::StatusDatasetContext::end(), Face, nfd::fib::Fib::FIB_ENTRY_REMOVED, nfd::fib::Fib::findExactMatch(), nfd::FaceTable::get(), nfd::fib::NextHop::getCost(), ndn::nfd::ControlParameters::getCost(), nfd::fib::NextHop::getFace(), ndn::nfd::ControlParameters::getFaceId(), nfd::fib::Fib::getMaxDepth(), ndn::nfd::ControlParameters::getName(), ndn::TagHost::getTag(), nfd::fib::Fib::insert(), nfd::ManagerBase::interest, nfd::fib::Fib::NEXTHOP_REMOVED, ndn::tlv::nfd::NextHopRecord, NFD_LOG_DEBUG, NFD_LOG_TRACE, nfd::fib::Fib::NO_SUCH_NEXTHOP, nfd::ManagerBase::parameters, nfd::ManagerBase::prefix, nfd::ManagerBase::registerStatusDatasetHandler(), nfd::fib::Fib::removeNextHop(), ndn::nfd::ControlParameters::setFaceId(), ndn::Name::size(), ndn::to_string(), and ndn::nfd::ControlParameters::wireEncode().