conf-file-processor.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2014-2023, The University of Memphis,
4  * Regents of the University of California,
5  * Arizona Board of Regents.
6  *
7  * This file is part of NLSR (Named-data Link State Routing).
8  * See AUTHORS.md for complete list of NLSR authors and contributors.
9  *
10  * NLSR is free software: you can redistribute it and/or modify it under the terms
11  * of the GNU General Public License as published by the Free Software Foundation,
12  * either version 3 of the License, or (at your option) any later version.
13  *
14  * NLSR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  * PURPOSE. See the GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along with
19  * NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #include "conf-file-processor.hpp"
23 #include "adjacent.hpp"
25 #include "utility/name-helper.hpp"
26 
27 #include <ndn-cxx/name.hpp>
28 #include <ndn-cxx/net/face-uri.hpp>
29 #include <ndn-cxx/util/io.hpp>
30 
31 #include <boost/filesystem.hpp>
32 #include <boost/property_tree/info_parser.hpp>
33 
34 #include <fstream>
35 #include <iostream>
36 
37 namespace bf = boost::filesystem;
38 
39 namespace nlsr {
40 
41 template <class T>
42 class ConfigurationVariable
43 {
44 public:
45  typedef std::function<void(T)> ConfParameterCallback;
46 
47  ConfigurationVariable(const std::string& key, const ConfParameterCallback& setter)
48  : m_key(key)
49  , m_setterCallback(setter)
50  , m_minValue(0)
51  , m_maxValue(0)
52  , m_shouldCheckRange(false)
53  , m_isRequired(true)
54  {
55  }
56 
57  bool
58  parseFromConfigSection(const ConfigSection& section)
59  {
60  try {
61  T value = section.get<T>(m_key);
62 
63  if (!isValidValue(value)) {
64  return false;
65  }
66 
67  m_setterCallback(value);
68  return true;
69  }
70  catch (const std::exception& ex) {
71 
72  if (m_isRequired) {
73  std::cerr << ex.what() << std::endl;
74  std::cerr << "Missing required configuration variable" << std::endl;
75  return false;
76  }
77  else {
78  m_setterCallback(m_defaultValue);
79  return true;
80  }
81  }
82 
83  return false;
84  }
85 
86  void
87  setMinAndMaxValue(T min, T max)
88  {
89  m_minValue = min;
90  m_maxValue = max;
91  m_shouldCheckRange = true;
92  }
93 
94  void
95  setOptional(T defaultValue)
96  {
97  m_isRequired = false;
98  m_defaultValue = defaultValue;
99  }
100 
101 private:
102  void
103  printOutOfRangeError(T value)
104  {
105  std::cerr << "Invalid value for " << m_key << ": "
106  << value << ". "
107  << "Valid values: "
108  << m_minValue << " - "
109  << m_maxValue << std::endl;
110  }
111 
112  bool
113  isValidValue(T value)
114  {
115  if (!m_shouldCheckRange) {
116  return true;
117  }
118  else if (value < m_minValue || value > m_maxValue)
119  {
120  printOutOfRangeError(value);
121  return false;
122  }
123 
124  return true;
125  }
126 
127 private:
128  const std::string m_key;
129  const ConfParameterCallback m_setterCallback;
130  T m_defaultValue;
131 
132  T m_minValue;
133  T m_maxValue;
134 
135  bool m_shouldCheckRange;
136  bool m_isRequired;
137 };
138 
140  : m_confFileName(confParam.getConfFileName())
141  , m_confParam(confParam)
142 {
143 }
144 
145 bool
147 {
148  std::ifstream inputFile(m_confFileName);
149  if (!inputFile.is_open()) {
150  std::cerr << "Failed to read configuration file: " << m_confFileName << std::endl;
151  return false;
152  }
153 
154  if (!load(inputFile)) {
155  return false;
156  }
157 
158  m_confParam.buildRouterAndSyncUserPrefix();
159  m_confParam.writeLog();
160  return true;
161 }
162 
163 bool
164 ConfFileProcessor::load(std::istream& input)
165 {
166  ConfigSection pt;
167  try {
168  boost::property_tree::read_info(input, pt);
169  }
170  catch (const boost::property_tree::ptree_error& e) {
171  std::cerr << "Failed to parse configuration file '" << m_confFileName
172  << "': " << e.what() << std::endl;
173  return false;
174  }
175 
176  for (const auto& tn : pt) {
177  if (!processSection(tn.first, tn.second)) {
178  return false;
179  }
180  }
181  return true;
182 }
183 
184 bool
185 ConfFileProcessor::processSection(const std::string& sectionName, const ConfigSection& section)
186 {
187  bool ret = true;
188  if (sectionName == "general") {
189  ret = processConfSectionGeneral(section);
190  }
191  else if (sectionName == "neighbors") {
192  ret = processConfSectionNeighbors(section);
193  }
194  else if (sectionName == "hyperbolic") {
195  ret = processConfSectionHyperbolic(section);
196  }
197  else if (sectionName == "fib") {
198  ret = processConfSectionFib(section);
199  }
200  else if (sectionName == "advertising") {
201  ret = processConfSectionAdvertising(section);
202  }
203  else if (sectionName == "security") {
204  ret = processConfSectionSecurity(section);
205  }
206  else {
207  std::cerr << "Unknown configuration section: " << sectionName << std::endl;
208  }
209  return ret;
210 }
211 
212 bool
213 ConfFileProcessor::processConfSectionGeneral(const ConfigSection& section)
214 {
215  // sync-protocol
216  std::string syncProtocol = section.get<std::string>("sync-protocol", "psync");
217  if (syncProtocol == "chronosync") {
218 #ifdef HAVE_CHRONOSYNC
220 #else
221  std::cerr << "NLSR was compiled without ChronoSync support!\n";
222  return false;
223 #endif
224  }
225  else if (syncProtocol == "psync") {
226 #ifdef HAVE_PSYNC
228 #else
229  std::cerr << "NLSR was compiled without PSync support!\n";
230  return false;
231 #endif
232  }
233  else if (syncProtocol == "svs") {
234 #ifdef HAVE_SVS
235  m_confParam.setSyncProtocol(SyncProtocol::SVS);
236 #else
237  std::cerr << "NLSR was compiled without SVS support!\n";
238  return false;
239 #endif
240  }
241  else {
242  std::cerr << "Sync protocol '" << syncProtocol << "' is not supported!\n"
243  << "Use 'chronosync' or 'psync' or 'svs'\n";
244  return false;
245  }
246 
247  try {
248  std::string network = section.get<std::string>("network");
249  std::string site = section.get<std::string>("site");
250  std::string router = section.get<std::string>("router");
251  ndn::Name networkName(network);
252  if (!networkName.empty()) {
253  m_confParam.setNetwork(networkName);
254  }
255  else {
256  std::cerr << "Network can not be null or empty or in bad URI format" << std::endl;
257  return false;
258  }
259  ndn::Name siteName(site);
260  if (!siteName.empty()) {
261  m_confParam.setSiteName(siteName);
262  }
263  else {
264  std::cerr << "Site can not be null or empty or in bad URI format" << std::endl;
265  return false;
266  }
267  ndn::Name routerName(router);
268  if (!routerName.empty()) {
269  m_confParam.setRouterName(routerName);
270  }
271  else {
272  std::cerr << "Router name can not be null or empty or in bad URI format" << std::endl;
273  return false;
274  }
275  }
276  catch (const std::exception& ex) {
277  std::cerr << ex.what() << std::endl;
278  return false;
279  }
280 
281  // lsa-refresh-time
282  uint32_t lsaRefreshTime = section.get<uint32_t>("lsa-refresh-time", LSA_REFRESH_TIME_DEFAULT);
283 
284  if (lsaRefreshTime >= LSA_REFRESH_TIME_MIN && lsaRefreshTime <= LSA_REFRESH_TIME_MAX) {
285  m_confParam.setLsaRefreshTime(lsaRefreshTime);
286  }
287  else {
288  std::cerr << "Invalid value for lsa-refresh-time. "
289  << "Allowed range: " << LSA_REFRESH_TIME_MIN
290  << "-" << LSA_REFRESH_TIME_MAX << std::endl;
291  return false;
292  }
293 
294  // router-dead-interval
295  uint32_t routerDeadInterval = section.get<uint32_t>("router-dead-interval", 2 * lsaRefreshTime);
296 
297  if (routerDeadInterval > m_confParam.getLsaRefreshTime()) {
298  m_confParam.setRouterDeadInterval(routerDeadInterval);
299  }
300  else {
301  std::cerr << "Value of router-dead-interval must be larger than lsa-refresh-time" << std::endl;
302  return false;
303  }
304 
305  // lsa-interest-lifetime
306  int lifetime = section.get<int>("lsa-interest-lifetime", LSA_INTEREST_LIFETIME_DEFAULT);
307 
308  if (lifetime >= LSA_INTEREST_LIFETIME_MIN && lifetime <= LSA_INTEREST_LIFETIME_MAX) {
309  m_confParam.setLsaInterestLifetime(ndn::time::seconds(lifetime));
310  }
311  else {
312  std::cerr << "Invalid value for lsa-interest-timeout. "
313  << "Allowed range: " << LSA_INTEREST_LIFETIME_MIN
314  << "-" << LSA_INTEREST_LIFETIME_MAX << std::endl;
315  return false;
316  }
317 
318  // sync-interest-lifetime
319  uint32_t syncInterestLifetime = section.get<uint32_t>("sync-interest-lifetime",
321  if (syncInterestLifetime >= SYNC_INTEREST_LIFETIME_MIN &&
322  syncInterestLifetime <= SYNC_INTEREST_LIFETIME_MAX) {
323  m_confParam.setSyncInterestLifetime(syncInterestLifetime);
324  }
325  else {
326  std::cerr << "Invalid value for sync-interest-lifetime. "
327  << "Allowed range: " << SYNC_INTEREST_LIFETIME_MIN
328  << "-" << SYNC_INTEREST_LIFETIME_MAX << std::endl;
329  return false;
330  }
331 
332  try {
333  std::string stateDir = section.get<std::string>("state-dir");
334  if (bf::exists(stateDir)) {
335  if (bf::is_directory(stateDir)) {
336  // copying nlsr.conf file to a user-defined directory for possible modification
337  std::string conFileDynamic = (bf::path(stateDir) / "nlsr.conf").string();
338 
339  if (m_confFileName == conFileDynamic) {
340  std::cerr << "Please use nlsr.conf stored at another location "
341  << "or change the state-dir in the configuration." << std::endl;
342  std::cerr << "The file at " << conFileDynamic <<
343  " is used as dynamic file for saving NLSR runtime changes." << std::endl;
344  std::cerr << "The dynamic file can be used for next run "
345  << "after copying to another location." << std::endl;
346  return false;
347  }
348 
349  m_confParam.setConfFileNameDynamic(conFileDynamic);
350  try {
351  bf::copy_file(m_confFileName, conFileDynamic,
352 #if BOOST_VERSION >= 107400
353  bf::copy_options::overwrite_existing
354 #else
355  bf::copy_option::overwrite_if_exists
356 #endif
357  );
358  }
359  catch (const bf::filesystem_error& e) {
360  std::cerr << "Error copying conf file to the state directory: " << e.what() << std::endl;
361  return false;
362  }
363 
364  std::string testFileName = (bf::path(stateDir) / "test.seq").string();
365  std::ofstream testOutFile(testFileName);
366  if (testOutFile) {
367  m_confParam.setStateFileDir(stateDir);
368  }
369  else {
370  std::cerr << "NLSR does not have read/write permission on the state directory" << std::endl;
371  return false;
372  }
373  testOutFile.close();
374  remove(testFileName.c_str());
375  }
376  else {
377  std::cerr << "Provided path '" << stateDir << "' is not a directory" << std::endl;
378  return false;
379  }
380  }
381  else {
382  std::cerr << "Provided state directory '" << stateDir << "' does not exist" << std::endl;
383  return false;
384  }
385  }
386  catch (const std::exception& ex) {
387  std::cerr << "You must configure state directory" << std::endl;
388  std::cerr << ex.what() << std::endl;
389  return false;
390  }
391 
392  return true;
393 }
394 
395 bool
396 ConfFileProcessor::processConfSectionNeighbors(const ConfigSection& section)
397 {
398  // hello-retries
399  int retrials = section.get<int>("hello-retries", HELLO_RETRIES_DEFAULT);
400 
401  if (retrials >= HELLO_RETRIES_MIN && retrials <= HELLO_RETRIES_MAX) {
402  m_confParam.setInterestRetryNumber(retrials);
403  }
404  else {
405  std::cerr << "Invalid value for hello-retries. "
406  << "Allowed range: " << HELLO_RETRIES_MIN << "-" << HELLO_RETRIES_MAX << std::endl;
407  return false;
408  }
409 
410  // hello-timeout
411  uint32_t timeOut = section.get<uint32_t>("hello-timeout", HELLO_TIMEOUT_DEFAULT);
412 
413  if (timeOut >= HELLO_TIMEOUT_MIN && timeOut <= HELLO_TIMEOUT_MAX) {
414  m_confParam.setInterestResendTime(timeOut);
415  }
416  else {
417  std::cerr << "Invalid value for hello-timeout. "
418  << "Allowed range: " << HELLO_TIMEOUT_MIN << "-" << HELLO_TIMEOUT_MAX << std::endl;
419  return false;
420  }
421 
422  // hello-interval
423  uint32_t interval = section.get<uint32_t>("hello-interval", HELLO_INTERVAL_DEFAULT);
424 
425  if (interval >= HELLO_INTERVAL_MIN && interval <= HELLO_INTERVAL_MAX) {
426  m_confParam.setInfoInterestInterval(interval);
427  }
428  else {
429  std::cerr << "Invalid value for hello-interval. "
430  << "Allowed range: " << HELLO_INTERVAL_MIN << "-" << HELLO_INTERVAL_MAX << std::endl;
431  return false;
432  }
433 
434  // Event intervals
435  // adj-lsa-build-interval
436  ConfigurationVariable<uint32_t> adjLsaBuildInterval("adj-lsa-build-interval",
438  &m_confParam, _1));
439  adjLsaBuildInterval.setMinAndMaxValue(ADJ_LSA_BUILD_INTERVAL_MIN, ADJ_LSA_BUILD_INTERVAL_MAX);
440  adjLsaBuildInterval.setOptional(ADJ_LSA_BUILD_INTERVAL_DEFAULT);
441 
442  if (!adjLsaBuildInterval.parseFromConfigSection(section)) {
443  return false;
444  }
445  // Set the retry count for fetching the FaceStatus dataset
446  ConfigurationVariable<uint32_t> faceDatasetFetchTries("face-dataset-fetch-tries",
448  &m_confParam, _1));
449 
450  faceDatasetFetchTries.setMinAndMaxValue(FACE_DATASET_FETCH_TRIES_MIN,
452  faceDatasetFetchTries.setOptional(FACE_DATASET_FETCH_TRIES_DEFAULT);
453 
454  if (!faceDatasetFetchTries.parseFromConfigSection(section)) {
455  return false;
456  }
457 
458  // Set the interval between FaceStatus dataset fetch attempts.
459  ConfigurationVariable<uint32_t> faceDatasetFetchInterval("face-dataset-fetch-interval",
461  &m_confParam, _1));
462 
463  faceDatasetFetchInterval.setMinAndMaxValue(FACE_DATASET_FETCH_INTERVAL_MIN,
465  faceDatasetFetchInterval.setOptional(FACE_DATASET_FETCH_INTERVAL_DEFAULT);
466 
467  if (!faceDatasetFetchInterval.parseFromConfigSection(section)) {
468  return false;
469  }
470 
471  for (const auto& tn : section) {
472  if (tn.first == "neighbor") {
473  try {
474  ConfigSection CommandAttriTree = tn.second;
475  std::string name = CommandAttriTree.get<std::string>("name");
476  std::string uriString = CommandAttriTree.get<std::string>("face-uri");
477 
478  ndn::FaceUri faceUri;
479  if (!faceUri.parse(uriString)) {
480  std::cerr << "face-uri parsing failed" << std::endl;
481  return false;
482  }
483 
484  bool failedToCanonize = false;
485  faceUri.canonize([&faceUri] (const auto& canonicalUri) {
486  faceUri = canonicalUri;
487  },
488  [&faceUri, &failedToCanonize] (const auto& reason) {
489  failedToCanonize = true;
490  std::cerr << "Could not canonize URI: '" << faceUri
491  << "' because: " << reason << std::endl;
492  },
493  m_io,
495  m_io.run();
496  m_io.reset();
497 
498  if (failedToCanonize) {
499  return false;
500  }
501 
502  double linkCost = CommandAttriTree.get<double>("link-cost", Adjacent::DEFAULT_LINK_COST);
503  ndn::Name neighborName(name);
504  if (!neighborName.empty()) {
505  Adjacent adj(name, faceUri, linkCost, Adjacent::STATUS_INACTIVE, 0, 0);
506  m_confParam.getAdjacencyList().insert(adj);
507  }
508  else {
509  std::cerr << " Wrong command format ! [name /nbr/name/ \n face-uri /uri\n]";
510  std::cerr << " or bad URI format" << std::endl;
511  }
512  }
513  catch (const std::exception& ex) {
514  std::cerr << ex.what() << std::endl;
515  return false;
516  }
517  }
518  }
519  return true;
520 }
521 
522 bool
523 ConfFileProcessor::processConfSectionHyperbolic(const ConfigSection& section)
524 {
525  // state
526  std::string state = section.get<std::string>("state", "off");
527 
528  if (boost::iequals(state, "off")) {
530  }
531  else if (boost::iequals(state, "on")) {
533  }
534  else if (boost::iequals(state, "dry-run")) {
536  }
537  else {
538  std::cerr << "Invalid setting for hyperbolic state. "
539  << "Allowed values: off, on, dry-run" << std::endl;
540  return false;
541  }
542 
543  try {
544  // Radius and angle(s) are mandatory configuration parameters in hyperbolic section.
545  // Even if router can have hyperbolic routing calculation off but other router
546  // in the network may use hyperbolic routing calculation for FIB generation.
547  // So each router need to advertise its hyperbolic coordinates in the network
548  double radius = section.get<double>("radius");
549  std::string angleString = section.get<std::string>("angle");
550 
551  std::stringstream ss(angleString);
552  std::vector<double> angles;
553 
554  double angle;
555 
556  while (ss >> angle) {
557  angles.push_back(angle);
558  if (ss.peek() == ',' || ss.peek() == ' ') {
559  ss.ignore();
560  }
561  }
562 
563  if (!m_confParam.setCorR(radius)) {
564  return false;
565  }
566  m_confParam.setCorTheta(angles);
567  }
568  catch (const std::exception& ex) {
569  std::cerr << ex.what() << std::endl;
570  if (state == "on" || state == "dry-run") {
571  return false;
572  }
573  }
574 
575  return true;
576 }
577 
578 bool
579 ConfFileProcessor::processConfSectionFib(const ConfigSection& section)
580 {
581  // max-faces-per-prefix
582  int maxFacesPerPrefix = section.get<int>("max-faces-per-prefix", MAX_FACES_PER_PREFIX_DEFAULT);
583 
584  if (maxFacesPerPrefix >= MAX_FACES_PER_PREFIX_MIN &&
585  maxFacesPerPrefix <= MAX_FACES_PER_PREFIX_MAX) {
586  m_confParam.setMaxFacesPerPrefix(maxFacesPerPrefix);
587  }
588  else {
589  std::cerr << "Invalid value for max-faces-per-prefix. "
590  << "Allowed range: " << MAX_FACES_PER_PREFIX_MIN
591  << "-" << MAX_FACES_PER_PREFIX_MAX << std::endl;
592  return false;
593  }
594 
595  // routing-calc-interval
596  ConfigurationVariable<uint32_t> routingCalcInterval("routing-calc-interval",
598  &m_confParam, _1));
599  routingCalcInterval.setMinAndMaxValue(ROUTING_CALC_INTERVAL_MIN, ROUTING_CALC_INTERVAL_MAX);
600  routingCalcInterval.setOptional(ROUTING_CALC_INTERVAL_DEFAULT);
601 
602  if (!routingCalcInterval.parseFromConfigSection(section)) {
603  return false;
604  }
605 
606  return true;
607 }
608 
609 bool
610 ConfFileProcessor::processConfSectionAdvertising(const ConfigSection& section)
611 {
612  for (const auto& tn : section) {
613  if (tn.first == "prefix") {
614  try {
615  ndn::Name namePrefix(tn.second.data());
616  if (!namePrefix.empty()) {
617  m_confParam.getNamePrefixList().insert(namePrefix);
618  }
619  else {
620  std::cerr << " Wrong command format ! [prefix /name/prefix] or bad URI" << std::endl;
621  return false;
622  }
623  }
624  catch (const std::exception& ex) {
625  std::cerr << ex.what() << std::endl;
626  return false;
627  }
628  }
629  }
630  return true;
631 }
632 
633 bool
634 ConfFileProcessor::processConfSectionSecurity(const ConfigSection& section)
635 {
636  auto it = section.begin();
637 
638  if (it == section.end() || it->first != "validator") {
639  std::cerr << "Error: Expected validator section!" << std::endl;
640  return false;
641  }
642 
643  m_confParam.getValidator().load(it->second, m_confFileName);
644 
645  it++;
646  if (it != section.end() && it->first == "prefix-update-validator") {
647  m_confParam.getPrefixUpdateValidator().load(it->second, m_confFileName);
648 
649  it++;
650  for (; it != section.end(); it++) {
651  if (it->first != "cert-to-publish") {
652  std::cerr << "Error: Expected cert-to-publish!" << std::endl;
653  return false;
654  }
655 
656  std::string file = it->second.data();
657  bf::path certfilePath = absolute(file, bf::path(m_confFileName).parent_path());
658  std::ifstream ifs(certfilePath.string());
659 
660  ndn::security::Certificate idCert;
661  try {
662  idCert = ndn::io::loadTlv<ndn::security::Certificate>(ifs);
663  }
664  catch (const std::exception& e) {
665  std::cerr << "Error: Cannot load cert-to-publish '" << file << "': " << e.what() << std::endl;
666  return false;
667  }
668 
669  m_confParam.addCertPath(certfilePath.string());
670  m_confParam.loadCertToValidator(idCert);
671  }
672  }
673 
674  return true;
675 }
676 
677 } // namespace nlsr
bool insert(const Adjacent &adjacent)
static constexpr double DEFAULT_LINK_COST
Definition: adjacent.hpp:186
ConfFileProcessor(ConfParameter &confParam)
bool processConfFile()
Load and parse the configuration file, then populate NLSR.
A class to house all the configuration parameters for NLSR.
void setRouterName(const ndn::Name &routerName)
void setSiteName(const ndn::Name &siteName)
void setInterestRetryNumber(uint32_t irn)
void setMaxFacesPerPrefix(uint32_t mfpp)
void setRouterDeadInterval(uint32_t rdt)
void writeLog()
Dump the current state of all attributes to the log.
void setSyncProtocol(SyncProtocol syncProtocol)
void setStateFileDir(const std::string &ssfd)
void setLsaRefreshTime(uint32_t lrt)
void setInterestResendTime(uint32_t irt)
void loadCertToValidator(const ndn::security::Certificate &cert)
uint32_t getLsaRefreshTime() const
void setAdjLsaBuildInterval(uint32_t interval)
void setConfFileNameDynamic(const std::string &confFileDynamic)
void setInfoInterestInterval(uint32_t iii)
NamePrefixList & getNamePrefixList()
void addCertPath(const std::string &certPath)
AdjacencyList & getAdjacencyList()
void setFaceDatasetFetchTries(uint32_t count)
ndn::security::ValidatorConfig & getValidator()
void setLsaInterestLifetime(const ndn::time::seconds &lifetime)
void setSyncInterestLifetime(uint32_t syncInterestLifetime)
void setCorTheta(const std::vector< double > &ct)
bool setCorR(double cr)
ndn::security::ValidatorConfig & getPrefixUpdateValidator()
void setFaceDatasetFetchInterval(uint32_t interval)
void setHyperbolicState(int32_t ihc)
void setNetwork(const ndn::Name &networkName)
void setRoutingCalcInterval(uint32_t interval)
bool insert(const ndn::Name &name, const std::string &source="")
inserts name into NamePrefixList
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
@ FACE_DATASET_FETCH_TRIES_DEFAULT
@ FACE_DATASET_FETCH_TRIES_MIN
@ FACE_DATASET_FETCH_TRIES_MAX
@ LSA_REFRESH_TIME_MIN
@ LSA_REFRESH_TIME_MAX
@ LSA_REFRESH_TIME_DEFAULT
@ HELLO_RETRIES_MAX
@ HELLO_RETRIES_DEFAULT
@ HELLO_RETRIES_MIN
@ ROUTING_CALC_INTERVAL_DEFAULT
@ ROUTING_CALC_INTERVAL_MIN
@ ROUTING_CALC_INTERVAL_MAX
@ MAX_FACES_PER_PREFIX_MIN
@ MAX_FACES_PER_PREFIX_DEFAULT
@ MAX_FACES_PER_PREFIX_MAX
@ FACE_DATASET_FETCH_INTERVAL_DEFAULT
@ FACE_DATASET_FETCH_INTERVAL_MIN
@ FACE_DATASET_FETCH_INTERVAL_MAX
constexpr ndn::time::seconds TIME_ALLOWED_FOR_CANONIZATION
Definition: common.hpp:40
@ ADJ_LSA_BUILD_INTERVAL_DEFAULT
@ ADJ_LSA_BUILD_INTERVAL_MIN
@ ADJ_LSA_BUILD_INTERVAL_MAX
@ HYPERBOLIC_STATE_ON
@ HYPERBOLIC_STATE_DRY_RUN
@ HYPERBOLIC_STATE_OFF
@ LSA_INTEREST_LIFETIME_MAX
@ LSA_INTEREST_LIFETIME_DEFAULT
@ LSA_INTEREST_LIFETIME_MIN
boost::property_tree::ptree ConfigSection
@ HELLO_INTERVAL_MIN
@ HELLO_INTERVAL_DEFAULT
@ HELLO_INTERVAL_MAX
@ HELLO_TIMEOUT_DEFAULT
@ HELLO_TIMEOUT_MIN
@ HELLO_TIMEOUT_MAX
@ SYNC_INTEREST_LIFETIME_MIN
@ SYNC_INTEREST_LIFETIME_MAX
@ SYNC_INTEREST_LIFETIME_DEFAULT