32 const uint64_t ConfParameter::SYNC_VERSION = 6;
35 : m_confFileName(confFileName)
53 , m_validator(
std::make_unique<
ndn::security::v2::CertificateFetcherDirectFetch>(face))
54 , m_prefixUpdateValidator(
std::make_unique<
ndn::security::v2::CertificateFetcherDirectFetch>(face))
67 NLSR_LOG_INFO(
"Hello Interest retry number: " << m_interestRetryNumber);
68 NLSR_LOG_INFO(
"Hello Interest resend second: " << m_interestResendTime);
69 NLSR_LOG_INFO(
"Info Interest interval: " << m_infoInterestInterval);
71 NLSR_LOG_INFO(
"FIB Entry refresh time: " << m_lsaRefreshTime * 2);
74 NLSR_LOG_INFO(
"Max Faces Per Prefix: " << m_maxFacesPerPrefix);
78 for (
auto const& value: m_corTheta) {
84 NLSR_LOG_INFO(
"Adjacency LSA build interval: " << m_adjLsaBuildInterval);
85 NLSR_LOG_INFO(
"First Hello Interest interval: " << m_firstHelloInterval);
86 NLSR_LOG_INFO(
"Routing calculation interval: " << m_routingCalcInterval);
92 m_network = networkName;
94 m_syncPrefix.append(
"localhop");
95 m_syncPrefix.append(m_network);
96 m_syncPrefix.append(
"nlsr");
97 m_syncPrefix.append(
"sync");
98 m_syncPrefix.appendVersion(SYNC_VERSION);
100 m_lsaPrefix.append(
"localhop");
101 m_lsaPrefix.append(m_network);
102 m_lsaPrefix.append(
"nlsr");
103 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)
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.