|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
26 #ifndef NFD_DAEMON_MGMT_RIB_MANAGER_HPP
27 #define NFD_DAEMON_MGMT_RIB_MANAGER_HPP
144 slRenew(
const Name&
name, uint64_t faceId, time::milliseconds maxLifetime,
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)
override;
230 onFetchActiveFacesFailure(uint32_t code,
const std::string& reason);
234 scheduleActiveFaceFetch(
const time::seconds& timeToWait);
237 removeInvalidFaces(
const std::vector<ndn::nfd::FaceStatus>& activeFaces);
255 bool m_isLocalhopEnabled;
265 #endif // NFD_DAEMON_MGMT_RIB_MANAGER_HPP
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
void slRenew(const Name &name, uint64_t faceId, time::milliseconds maxLifetime, const SlAnnounceCallback &cb)
Renew a route created by prefix announcement from self-learning strategy.
std::function< void(SlAnnounceResult res)> SlAnnounceCallback
@ VALIDATION_FAILURE
the announcement cannot be verified against the trust schema
void slAnnounce(const ndn::PrefixAnnouncement &pa, uint64_t faceId, time::milliseconds maxLifetime, const SlAnnounceCallback &cb)
Insert a route by prefix announcement from self-learning strategy.
std::function< void(const ControlResponse &resp)> CommandContinuation
a function to be called after ControlCommandHandler completes
void registerWithNfd()
Start accepting commands and dataset requests.
RibManager(rib::Rib &rib, ndn::Face &face, ndn::KeyChain &keyChain, ndn::nfd::Controller &nfdController, Dispatcher &dispatcher)
NFD Management protocol client.
Provide a communication channel with local or remote NDN forwarder.
A prefix announcement object that represents an application's intent of registering a prefix toward i...
void enableLocalhop(const ConfigSection §ion, const std::string &filename)
Apply localhop_security configuration and allow accepting commands on /localhop/nfd/rib prefix.
Represents an absolute name.
represents a Face status change notification
Copyright (c) 2011-2015 Regents of the University of California.
@ OK
RIB and FIB have been updated.
@ NOT_FOUND
route does not exist (slRenew only)
void enableLocalFields()
Enable NDNLP IncomingFaceId field in order to support self-registration commands.
The interface of signing key management.
void disableLocalhop()
Disallow accepting commands on /localhop/nfd/rib prefix.
provides a context for generating response to a StatusDataset request
represents the Routing Information Base
std::function< void(const Name &prefix, const Interest &interest, const ControlParameters *params, const AcceptContinuation &accept, const RejectContinuation &reject)> Authorization
a function that performs authorization
std::ostream & operator<<(std::ostream &os, const Network &network)
Represents an Interest packet.
@ EXPIRED
the announcement has expired
Helper for validator that uses CommandInterest + Config policy and NetworkFetcher.
void slFindAnn(const Name &name, const SlFindAnnCallback &cb) const
Retrieve an outgoing prefix announcement for self-learning strategy.
Implements the RIB Management of NFD Management Protocol.
boost::property_tree::ptree ConfigSection
a config file section
static const Name LOCALHOP_TOP_PREFIX
A subscriber for Face status change notification stream.
A collection of common functions shared by all NFD managers, such as communicating with the dispatche...
represents parameters in a ControlCommand request or response
represents a dispatcher on server side of NFD Management protocol
represents a route for a name prefix
void applyLocalhostConfig(const ConfigSection §ion, const std::string &filename)
Apply localhost_security configuration.
void applyPaConfig(const ConfigSection §ion, const std::string &filename)
Apply prefix_announcement_validation configuration.
std::function< void(optional< ndn::PrefixAnnouncement >)> SlFindAnnCallback