#include <nlsr.hpp>
Definition at line 67 of file nlsr.hpp.
nlsr::Nlsr::Nlsr |
( |
ndn::Face & |
face, |
|
|
ndn::KeyChain & |
keyChain, |
|
|
ConfParameter & |
confParam |
|
) |
| |
void nlsr::Nlsr::addDispatcherTopPrefix |
( |
const ndn::Name & |
topPrefix | ) |
|
Add top level prefixes for Dispatcher.
All dispatcher-related sub-prefixes must be registered before sub-prefixes must be added before adding top
Definition at line 124 of file nlsr.cpp.
void nlsr::Nlsr::afterFetcherSignalEmitted |
( |
const ndn::Data & |
lsaSegment | ) |
|
Callback when SegmentFetcher retrieves a segment.
Definition at line 157 of file nlsr.cpp.
const ndn::security::v2::Certificate* nlsr::Nlsr::getCertificate |
( |
const ndn::Name & |
certificateKeyName | ) |
|
|
inline |
Find a certificate.
Find a certificate that NLSR has. First it checks against the certificates this NLSR claims to be authoritative for, usually something like this specific router's certificate, and then checks the cache of certficates it has already fetched. If none can be found, it will return an empty pointer.
Definition at line 190 of file nlsr.hpp.
Fib& nlsr::Nlsr::getFib |
( |
| ) |
|
|
inline |
void nlsr::Nlsr::initialize |
( |
| ) |
|
Initializes neighbors' Faces using information from NFD.
- See also
- Nlsr::initialize()
-
Nlsr::processFaceDataset()
This function serves as the entry-point for initializing the neighbors listed in nlsr.conf during Nlsr::initialize(). NLSR will attempt to fetch a dataset of Faces from NFD, and configure each of its neighbors using information from that dataset. The explicit callbacks allow for better testability.
Definition at line 472 of file nlsr.cpp.
void nlsr::Nlsr::initializeKey |
( |
| ) |
|
void nlsr::Nlsr::loadCertToPublish |
( |
const ndn::security::v2::Certificate & |
certificate | ) |
|
Add a certificate NLSR claims to be authoritative for to the certificate store.
- See also
- CertificateStore
Definition at line 145 of file nlsr.cpp.
void nlsr::Nlsr::onFaceDatasetFetchTimeout |
( |
uint32_t |
code, |
|
|
const std::string & |
reason, |
|
|
uint32_t |
nRetriesSoFar |
|
) |
| |
void nlsr::Nlsr::onRegistrationSuccess |
( |
const ndn::Name & |
name | ) |
|
void nlsr::Nlsr::processFaceDataset |
( |
const std::vector< ndn::nfd::FaceStatus > & |
faces | ) |
|
Consumes a Face StatusDataset to configure NLSR neighbors.
- See also
- Nlsr::initializeFaces
- Parameters
-
faces | A Face Dataset that should conform to FaceMgmt specifications. |
This function processes a Face StatusDataset that should conform to the FaceMgmt specifications listed here. Any newly configured neighbors will have prefixes registered with NFD and be sent Hello Interests as well.
Definition at line 482 of file nlsr.cpp.
void nlsr::Nlsr::publishCertFromCache |
( |
const ndn::Name & |
keyName | ) |
|
Retrieves the chain of certificates from Validator's cache and store them in Nlsr's own CertificateStore.
- Parameters
-
keyName | Name of the first key in the certificate chain. |
Definition at line 170 of file nlsr.cpp.
void nlsr::Nlsr::registerAdjacencyPrefixes |
( |
const Adjacent & |
adj, |
|
|
const ndn::time::milliseconds & |
timeout |
|
) |
| |
Registers NLSR-specific prefixes for a neighbor (Adjacent)
- See also
- Nlsr::initializeFaces
- Parameters
-
adj | A reference to the neighbor to register prefixes for |
timeout | The amount of time to give NFD to respond to each registration request. |
Registers the prefixes in NFD that NLSR needs to route with a neighbor. The timeout given is how long to set the timeout for each registration request that is made.
Definition at line 516 of file nlsr.cpp.
void nlsr::Nlsr::registrationFailed |
( |
const ndn::Name & |
name | ) |
|
void nlsr::Nlsr::setInfoInterestFilter |
( |
| ) |
|
void nlsr::Nlsr::setLsaInterestFilter |
( |
| ) |
|
void nlsr::Nlsr::setStrategies |
( |
| ) |
|
const ndn::Name nlsr::Nlsr::LOCALHOST_PREFIX = ndn::Name("/localhost/nlsr") |
|
static |