26 #ifndef NFD_DAEMON_MGMT_RIB_MANAGER_HPP 27 #define NFD_DAEMON_MGMT_RIB_MANAGER_HPP 59 applyLocalhostConfig(
const ConfigSection& section,
const std::string& filename);
66 enableLocalhop(
const ConfigSection& section,
const std::string& filename);
78 applyPaConfig(
const ConfigSection& section,
const std::string& filename);
162 enum class RibUpdateResult
170 getSlAnnounceResultFromRibUpdateResult(RibUpdateResult r);
179 beginAddRoute(
const Name&
name,
rib::Route route, optional<time::nanoseconds> expires,
180 const std::function<
void(RibUpdateResult)>& done);
189 const std::function<
void(RibUpdateResult)>& done);
193 const std::function<
void(RibUpdateResult)>& done);
197 registerTopPrefix(
const Name& topPrefix);
202 registerEntry(
const Name& topPrefix,
const Interest& interest,
209 unregisterEntry(
const Name& topPrefix,
const Interest& interest,
216 listEntries(
const Name& topPrefix,
const Interest& interest,
223 makeAuthorization(
const std::string& verb)
final;
230 onFetchActiveFacesFailure(uint32_t code,
const std::string& reason);
237 removeInvalidFaces(
const std::vector<ndn::nfd::FaceStatus>& activeFaces);
255 bool m_isLocalhopEnabled;
265 #endif // NFD_DAEMON_MGMT_RIB_MANAGER_HPP boost::chrono::seconds seconds
A collection of common functions shared by all NFD managers, such as communicating with the dispatche...
represents the Routing Information Base
represents parameters in a ControlCommand request or response
represents a dispatcher on server side of NFD Management protocol
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
Helper for validator that uses SignedInterest + CommandInterest + Config policy and NetworkFetcher...
represents a Face status change notification
Represents an Interest packet.
A subscriber for Face status change notification stream.
A prefix announcement object that represents an application's intent of registering a prefix toward i...
Copyright (c) 2011-2015 Regents of the University of California.
#define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE
represents a route for a name prefix
Provide a communication channel with local or remote NDN forwarder.
NFD Management protocol client.
boost::property_tree::ptree ConfigSection
a config file section
Implements the RIB Management of NFD Management Protocol.
Represents an absolute name.
std::function< void(const ControlResponse &resp)> CommandContinuation
a function to be called after ControlCommandHandler completes
std::function< void(SlAnnounceResult res)> SlAnnounceCallback
static const Name LOCALHOP_TOP_PREFIX
std::function< void(optional< ndn::PrefixAnnouncement >)> SlFindAnnCallback
Provides a context for generating the response to a StatusDataset request.
std::function< void(const Name &prefix, const Interest &interest, const ControlParameters *params, const AcceptContinuation &accept, const RejectContinuation &reject)> Authorization
a function that performs authorization
boost::chrono::milliseconds milliseconds