32 const uint64_t ConfParameter::SYNC_VERSION = 6;
34 static std::unique_ptr<ndn::security::v2::CertificateFetcherDirectFetch>
37 auto fetcher = std::make_unique<ndn::security::v2::CertificateFetcherDirectFetch>(face);
38 fetcher->setSendDirectInterestOnly(
true);
43 : m_confFileName(confFileName)
62 , m_prefixUpdateValidator(
std::make_unique<
ndn::security::v2::CertificateFetcherDirectFetch>(face))
75 NLSR_LOG_INFO(
"Hello Interest retry number: " << m_interestRetryNumber);
76 NLSR_LOG_INFO(
"Hello Interest resend second: " << m_interestResendTime);
77 NLSR_LOG_INFO(
"Info Interest interval: " << m_infoInterestInterval);
79 NLSR_LOG_INFO(
"FIB Entry refresh time: " << m_lsaRefreshTime * 2);
82 NLSR_LOG_INFO(
"Max Faces Per Prefix: " << m_maxFacesPerPrefix);
86 for (
auto const& value: m_corTheta) {
92 NLSR_LOG_INFO(
"Adjacency LSA build interval: " << m_adjLsaBuildInterval);
93 NLSR_LOG_INFO(
"First Hello Interest interval: " << m_firstHelloInterval);
94 NLSR_LOG_INFO(
"Routing calculation interval: " << m_routingCalcInterval);
100 m_network = networkName;
102 m_syncPrefix.append(
"localhop");
103 m_syncPrefix.append(m_network);
104 m_syncPrefix.append(
"nlsr");
105 m_syncPrefix.append(
"sync");
106 m_syncPrefix.appendVersion(SYNC_VERSION);
108 m_lsaPrefix.append(
"localhop");
109 m_lsaPrefix.append(m_network);
110 m_lsaPrefix.append(
"nlsr");
111 m_lsaPrefix.append(
"LSA");
ConfParameter(ndn::Face &face, const std::string &confFileName="nlsr.conf")
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
void setNetwork(const ndn::Name &networkName)
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California.
const ndn::time::seconds & getLsaInterestLifetime() const
#define INIT_LOGGER(name)
static std::unique_ptr< ndn::security::v2::CertificateFetcherDirectFetch > makeCertificateFetcher(ndn::Face &face)
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
uint32_t getRouterDeadInterval() const
void writeLog()
Dump the current state of all attributes to the log.