blob: 1a3432afe87ab3da2519f40f93b5c793892bbd37 [file] [log] [blame]
akmhoque3d06e792014-05-27 16:23:20 -05001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Nick Gordonc6a85222017-01-03 16:54:34 -06003 * Copyright (c) 2014-2017, The University of Memphis,
Vince Lehmanc2e51f62015-01-20 15:03:11 -06004 * Regents of the University of California,
5 * Arizona Board of Regents.
akmhoque3d06e792014-05-27 16:23:20 -05006 *
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/>.
akmhoque3d06e792014-05-27 16:23:20 -050020 **/
Vince Lehmanc2e51f62015-01-20 15:03:11 -060021
dmcoomes9f936662017-03-02 10:33:09 -060022#ifndef NLSR_NLSR_HPP
23#define NLSR_NLSR_HPP
akmhoque298385a2014-02-13 14:13:09 -060024
Vince Lehmanc2acdcb2015-04-29 11:14:35 -050025#include "adjacency-list.hpp"
Vince Lehman0a7da612014-10-29 14:39:29 -050026#include "common.hpp"
akmhoque53353462014-04-22 08:43:45 -050027#include "conf-parameter.hpp"
akmhoque31d1d4b2014-05-05 22:08:14 -050028#include "hello-protocol.hpp"
Vince Lehmanc2acdcb2015-04-29 11:14:35 -050029#include "lsdb.hpp"
30#include "name-prefix-list.hpp"
Vince Lehman7b616582014-10-17 16:25:39 -050031#include "test-access-control.hpp"
Yingdi Yu20e3a6e2014-05-26 23:16:10 -070032#include "validator.hpp"
Vince Lehmanc2acdcb2015-04-29 11:14:35 -050033#include "publisher/lsdb-dataset-interest-handler.hpp"
34#include "route/fib.hpp"
35#include "route/name-prefix-table.hpp"
36#include "route/routing-table.hpp"
37#include "security/certificate-store.hpp"
38#include "update/prefix-update-processor.hpp"
Nick Gordon4d2c6c02017-01-20 13:18:46 -060039#include "update/nfd-rib-command-processor.hpp"
Vince Lehmanc2acdcb2015-04-29 11:14:35 -050040#include "utility/name-helper.hpp"
Yingdi Yu20e3a6e2014-05-26 23:16:10 -070041
Laqin Fan54a43f02017-03-08 12:31:30 -060042#include <stdexcept>
43
44#include <ndn-cxx/face.hpp>
45#include <ndn-cxx/security/key-chain.hpp>
46#include <ndn-cxx/security/certificate-cache-ttl.hpp>
47#include <ndn-cxx/util/scheduler.hpp>
48#include <ndn-cxx/mgmt/nfd/face-event-notification.hpp>
49#include <ndn-cxx/mgmt/nfd/face-monitor.hpp>
50#include <ndn-cxx/mgmt/dispatcher.hpp>
51#include <ndn-cxx/mgmt/nfd/face-status.hpp>
52#include <ndn-cxx/data.hpp>
53#include <ndn-cxx/encoding/block.hpp>
54
55#include <boost/cstdint.hpp>
56#include <boost/throw_exception.hpp>
57
akmhoque53353462014-04-22 08:43:45 -050058namespace nlsr {
59
Yingdi Yu20e3a6e2014-05-26 23:16:10 -070060static ndn::Name DEFAULT_BROADCAST_PREFIX("/ndn/broadcast");
61
akmhoque53353462014-04-22 08:43:45 -050062class Nlsr
63{
Nick Gordond5c1a372016-10-31 13:56:23 -050064public:
65 using FetchDatasetCallback = std::function<void(const std::vector<ndn::nfd::FaceStatus>&)>;
66 using FetchDatasetTimeoutCallback = std::function<void(uint32_t, const std::string&)>;
Nick Gordon9461afb2017-04-25 15:54:50 -050067
akmhoquefdbddb12014-05-02 18:35:19 -050068 class Error : public std::runtime_error
69 {
70 public:
71 explicit
72 Error(const std::string& what)
73 : std::runtime_error(what)
74 {
75 }
76 };
77
Laqin Fana4cf4022017-01-03 18:57:35 +000078 Nlsr(boost::asio::io_service& ioService, ndn::Scheduler& scheduler, ndn::Face& face, ndn::KeyChain& keyChain);
akmhoque298385a2014-02-13 14:13:09 -060079
akmhoque53353462014-04-22 08:43:45 -050080 void
81 registrationFailed(const ndn::Name& name);
82
83 void
akmhoque157b0a42014-05-13 00:26:37 -050084 onRegistrationSuccess(const ndn::Name& name);
85
86 void
alvy297f4162015-03-03 17:15:33 -060087 onLocalhostRegistrationSuccess(const ndn::Name& name);
88
89 void
akmhoque31d1d4b2014-05-05 22:08:14 -050090 setInfoInterestFilter();
91
92 void
93 setLsaInterestFilter();
akmhoque53353462014-04-22 08:43:45 -050094
95 void
96 startEventLoop();
97
akmhoque53353462014-04-22 08:43:45 -050098 std::string
akmhoquefdbddb12014-05-02 18:35:19 -050099 getConfFileName() const
Yingdi Yu40cd1c32014-04-17 15:02:17 -0700100 {
akmhoque53353462014-04-22 08:43:45 -0500101 return m_configFileName;
Yingdi Yu40cd1c32014-04-17 15:02:17 -0700102 }
103
akmhoque53353462014-04-22 08:43:45 -0500104 void
akmhoquefdbddb12014-05-02 18:35:19 -0500105 setConfFileName(const std::string& fileName)
akmhoque5a44dd42014-03-12 18:11:32 -0500106 {
akmhoque53353462014-04-22 08:43:45 -0500107 m_configFileName = fileName;
108 }
akmhoque5a44dd42014-03-12 18:11:32 -0500109
akmhoque53353462014-04-22 08:43:45 -0500110 bool
111 getIsSetDaemonProcess()
112 {
113 return m_isDaemonProcess;
114 }
akmhoque5a44dd42014-03-12 18:11:32 -0500115
akmhoque53353462014-04-22 08:43:45 -0500116 void
117 setIsDaemonProcess(bool value)
118 {
119 m_isDaemonProcess = value;
120 }
akmhoque5a44dd42014-03-12 18:11:32 -0500121
akmhoque53353462014-04-22 08:43:45 -0500122 ConfParameter&
123 getConfParameter()
124 {
125 return m_confParam;
126 }
akmhoque5a44dd42014-03-12 18:11:32 -0500127
akmhoquec8a10f72014-04-25 18:42:55 -0500128 AdjacencyList&
129 getAdjacencyList()
akmhoque53353462014-04-22 08:43:45 -0500130 {
akmhoquec8a10f72014-04-25 18:42:55 -0500131 return m_adjacencyList;
akmhoque53353462014-04-22 08:43:45 -0500132 }
akmhoque298385a2014-02-13 14:13:09 -0600133
akmhoquec8a10f72014-04-25 18:42:55 -0500134 NamePrefixList&
135 getNamePrefixList()
akmhoque53353462014-04-22 08:43:45 -0500136 {
akmhoquec8a10f72014-04-25 18:42:55 -0500137 return m_namePrefixList;
akmhoque53353462014-04-22 08:43:45 -0500138 }
akmhoque298385a2014-02-13 14:13:09 -0600139
akmhoquefdbddb12014-05-02 18:35:19 -0500140 ndn::Face&
akmhoque53353462014-04-22 08:43:45 -0500141 getNlsrFace()
142 {
143 return m_nlsrFace;
144 }
akmhoque298385a2014-02-13 14:13:09 -0600145
akmhoque53353462014-04-22 08:43:45 -0500146 Lsdb&
147 getLsdb()
148 {
149 return m_nlsrLsdb;
150 }
akmhoque298385a2014-02-13 14:13:09 -0600151
akmhoque53353462014-04-22 08:43:45 -0500152 RoutingTable&
153 getRoutingTable()
154 {
155 return m_routingTable;
156 }
akmhoque298385a2014-02-13 14:13:09 -0600157
akmhoquec8a10f72014-04-25 18:42:55 -0500158 NamePrefixTable&
159 getNamePrefixTable()
akmhoque53353462014-04-22 08:43:45 -0500160 {
akmhoquec8a10f72014-04-25 18:42:55 -0500161 return m_namePrefixTable;
akmhoque53353462014-04-22 08:43:45 -0500162 }
akmhoque298385a2014-02-13 14:13:09 -0600163
akmhoque53353462014-04-22 08:43:45 -0500164 Fib&
165 getFib()
166 {
167 return m_fib;
168 }
akmhoque298385a2014-02-13 14:13:09 -0600169
akmhoque53353462014-04-22 08:43:45 -0500170 long int
171 getAdjBuildCount()
172 {
173 return m_adjBuildCount;
174 }
akmhoque298385a2014-02-13 14:13:09 -0600175
akmhoque53353462014-04-22 08:43:45 -0500176 void
177 incrementAdjBuildCount()
178 {
179 m_adjBuildCount++;
180 }
akmhoque298385a2014-02-13 14:13:09 -0600181
akmhoque53353462014-04-22 08:43:45 -0500182 void
akmhoquefdbddb12014-05-02 18:35:19 -0500183 setAdjBuildCount(int64_t abc)
akmhoque53353462014-04-22 08:43:45 -0500184 {
185 m_adjBuildCount = abc;
186 }
akmhoque298385a2014-02-13 14:13:09 -0600187
akmhoque157b0a42014-05-13 00:26:37 -0500188 bool
akmhoque53353462014-04-22 08:43:45 -0500189 getIsBuildAdjLsaSheduled()
190 {
191 return m_isBuildAdjLsaSheduled;
192 }
akmhoque298385a2014-02-13 14:13:09 -0600193
akmhoque53353462014-04-22 08:43:45 -0500194 void
195 setIsBuildAdjLsaSheduled(bool iabls)
196 {
197 m_isBuildAdjLsaSheduled = iabls;
198 }
akmhoque298385a2014-02-13 14:13:09 -0600199
akmhoque53353462014-04-22 08:43:45 -0500200 bool
201 getIsRoutingTableCalculating()
202 {
203 return m_isRoutingTableCalculating;
204 }
akmhoque85d88332014-02-17 21:11:21 -0600205
akmhoque53353462014-04-22 08:43:45 -0500206 void
207 setIsRoutingTableCalculating(bool irtc)
208 {
209 m_isRoutingTableCalculating = irtc;
210 }
akmhoque298385a2014-02-13 14:13:09 -0600211
akmhoque53353462014-04-22 08:43:45 -0500212 bool
213 getIsRouteCalculationScheduled()
214 {
215 return m_isRouteCalculationScheduled;
216 }
akmhoque298385a2014-02-13 14:13:09 -0600217
akmhoque53353462014-04-22 08:43:45 -0500218 void
219 setIsRouteCalculationScheduled(bool ircs)
220 {
221 m_isRouteCalculationScheduled = ircs;
222 }
akmhoque298385a2014-02-13 14:13:09 -0600223
Muktadir R Chowdhury3ac07282016-06-17 16:30:29 -0500224 LsdbDatasetInterestHandler&
225 getLsdbDatasetHandler()
226 {
227 return m_lsdbDatasetHandler;
228 }
229
akmhoque53353462014-04-22 08:43:45 -0500230 void
231 initialize();
akmhoque1fd8c1e2014-02-19 19:41:49 -0600232
Nick Gordond5c1a372016-10-31 13:56:23 -0500233 /*! \brief Initializes neighbors' Faces using information from NFD.
234 * \sa Nlsr::initialize()
235 * \sa Nlsr::processFaceDataset()
236 *
237 * This function serves as the entry-point for initializing the
238 * neighbors listed in nlsr.conf during Nlsr::initialize(). NLSR
239 * will attempt to fetch a dataset of Faces from NFD, and configure
240 * each of its neighbors using information from that dataset. The
241 * explicit callbacks allow for better testability.
242 */
243 void
244 initializeFaces(const FetchDatasetCallback& onFetchSuccess,
245 const FetchDatasetTimeoutCallback& onFetchFailure);
246
247 void
248 onFaceDatasetFetchTimeout(uint32_t code,
249 const std::string& reason,
250 uint32_t nRetriesSoFar);
251
252 /*! \brief Consumes a Face StatusDataset to configure NLSR neighbors.
253 * \sa Nlsr::initializeFaces
254 * \param faces A Face Dataset that should conform to FaceMgmt specifications.
255 *
256 * This function processes a Face StatusDataset that should conform
257 * to the FaceMgmt specifications listed
258 * [here](https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Dataset).
259 * Any newly configured neighbors will have prefixes registered with NFD
260 * and be sent Hello Interests as well.
261 */
262 void
263 processFaceDataset(const std::vector<ndn::nfd::FaceStatus>& faces);
264
265 /*! \brief Registers NLSR-specific prefixes for a neighbor (Adjacent)
266 * \sa Nlsr::initializeFaces
267 * \param adj A reference to the neighbor to register prefixes for
268 * \param timeout The amount of time to give NFD to respond to *each* registration request.
269 *
270 * Registers the prefixes in NFD that NLSR needs to route with a
271 * neighbor. The timeout given is how long to set the timeout for
272 * *each* registration request that is made.
273 */
274 void
275 registerAdjacencyPrefixes(const Adjacent& adj,
276 const ndn::time::milliseconds& timeout);
277
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700278 void
akmhoque443ad812014-07-29 10:26:56 -0500279 initializeKey();
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700280
281 void
282 loadValidator(boost::property_tree::ptree section,
283 const std::string& filename)
284 {
285 m_validator.load(section, filename);
286 }
287
288 Validator&
289 getValidator()
290 {
291 return m_validator;
292 }
293
294 void
dmcoomes9f936662017-03-02 10:33:09 -0600295 loadCertToPublish(std::shared_ptr<ndn::IdentityCertificate> certificate)
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700296 {
Vince Lehmanc2acdcb2015-04-29 11:14:35 -0500297 m_certStore.insert(certificate);
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700298 }
299
dmcoomes9f936662017-03-02 10:33:09 -0600300 std::shared_ptr<const ndn::IdentityCertificate>
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700301 getCertificate(const ndn::Name& certificateNameWithoutVersion)
302 {
Vince Lehmanc2acdcb2015-04-29 11:14:35 -0500303 shared_ptr<const ndn::IdentityCertificate> cert =
304 m_certStore.find(certificateNameWithoutVersion);
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700305
Vince Lehmanc2acdcb2015-04-29 11:14:35 -0500306 if (cert != nullptr) {
307 return cert;
308 }
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700309
310 return m_certificateCache->getCertificate(certificateNameWithoutVersion);
311 }
312
313 ndn::KeyChain&
314 getKeyChain()
315 {
316 return m_keyChain;
317 }
318
319 const ndn::Name&
320 getDefaultCertName()
321 {
322 return m_defaultCertName;
323 }
324
alvy297f4162015-03-03 17:15:33 -0600325 update::PrefixUpdateProcessor&
326 getPrefixUpdateProcessor()
327 {
328 return m_prefixUpdateProcessor;
329 }
330
Nick Gordon4d2c6c02017-01-20 13:18:46 -0600331 update::NfdRibCommandProcessor&
332 getNfdRibCommandProcessor()
333 {
334 return m_nfdRibCommandProcessor;
335 }
336
Nick Gordond1f4f332017-01-20 13:40:57 -0600337 ndn::mgmt::Dispatcher&
Laqin Fan54a43f02017-03-08 12:31:30 -0600338 getLocalhostDispatcher()
Nick Gordond1f4f332017-01-20 13:40:57 -0600339 {
laqinfand22da512017-05-25 17:29:53 -0500340 return m_localhostDispatcher;
341 }
342
343 ndn::mgmt::Dispatcher&
Laqin Fan54a43f02017-03-08 12:31:30 -0600344 getRouterNameDispatcher()
laqinfand22da512017-05-25 17:29:53 -0500345 {
346 return m_routerNameDispatcher;
Nick Gordond1f4f332017-01-20 13:40:57 -0600347 }
348
akmhoquee1765152014-06-30 11:32:01 -0500349 void
akmhoquec04e7272014-07-02 11:00:14 -0500350 setStrategies();
akmhoque157b0a42014-05-13 00:26:37 -0500351
akmhoque0494c252014-07-23 23:46:44 -0500352 void
353 daemonize();
354
Vince Lehman7b616582014-10-17 16:25:39 -0500355 uint32_t
356 getFirstHelloInterval() const
357 {
358 return m_firstHelloInterval;
359 }
360
Nick Gordond5c1a372016-10-31 13:56:23 -0500361 /*! \brief Canonize the URI for this and all proceeding neighbors in a list.
Nick Gordon9461afb2017-04-25 15:54:50 -0500362 *
363 * This function canonizes the URI of the Adjacent object pointed to
364 * by currentNeighbor. It then executes the then callback, providing
365 * the next iterator in the list to the callback. A standard
366 * invocation would be to pass the begin() iterator of NLSR's
367 * adjacency list, and to provide Nlsr::canonizeContinuation as the
368 * callback. Because every URI must be canonical before we begin
369 * operations, the canonize function must call initialize itself.
370 *
371 * \sa Nlsr::canonizeContinuation
372 * \sa Nlsr::initialize
373 * \sa NlsrRunner::run
374 */
375 void
376 canonizeNeighborUris(std::list<Adjacent>::iterator currentNeighbor,
377 std::function<void(std::list<Adjacent>::iterator)> then);
378
379
alvy297f4162015-03-03 17:15:33 -0600380PUBLIC_WITH_TESTS_ELSE_PRIVATE:
381 void
dmcoomes9f936662017-03-02 10:33:09 -0600382 addCertificateToCache(std::shared_ptr<ndn::IdentityCertificate> certificate)
alvy297f4162015-03-03 17:15:33 -0600383 {
384 if (certificate != nullptr) {
385 m_certificateCache->insertCertificate(certificate);
386 }
387 }
388
Vince Lehmanc2acdcb2015-04-29 11:14:35 -0500389 security::CertificateStore&
390 getCertificateStore()
391 {
392 return m_certStore;
393 }
394
akmhoque393d4ff2014-07-16 14:27:03 -0500395private:
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700396 void
397 registerKeyPrefix();
398
399 void
alvy297f4162015-03-03 17:15:33 -0600400 registerLocalhostPrefix();
401
402 void
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700403 onKeyInterest(const ndn::Name& name, const ndn::Interest& interest);
404
405 void
406 onKeyPrefixRegSuccess(const ndn::Name& name);
407
akmhoquee1765152014-06-30 11:32:01 -0500408 void
akmhoquec04e7272014-07-02 11:00:14 -0500409 onFaceEventNotification(const ndn::nfd::FaceEventNotification& faceEventNotification);
akmhoquee1765152014-06-30 11:32:01 -0500410
Vince Lehman7b616582014-10-17 16:25:39 -0500411 void
412 setFirstHelloInterval(uint32_t interval)
413 {
414 m_firstHelloInterval = interval;
415 }
416
Nick Gordond5c1a372016-10-31 13:56:23 -0500417 /*! \brief Continues canonizing neighbor URIs.
Nick Gordon9461afb2017-04-25 15:54:50 -0500418 *
419 * For testability reasons, we want what each instance of
420 * canonization does after completion to be controllable. The best
421 * way to do this is to control that by simply passing a
422 * continuation function.
423 */
424 void
425 canonizeContinuation(std::list<Adjacent>::iterator iterator);
426
Nick Gordond5c1a372016-10-31 13:56:23 -0500427 void
428 scheduleDatasetFetch();
429
alvy297f4162015-03-03 17:15:33 -0600430public:
431 static const ndn::Name LOCALHOST_PREFIX;
432
akmhoque157b0a42014-05-13 00:26:37 -0500433private:
Vince Lehman904c2412014-09-23 19:36:11 -0500434 ndn::Face& m_nlsrFace;
Vince Lehman7c603292014-09-11 17:48:16 -0500435 ndn::Scheduler& m_scheduler;
Laqin Fana4cf4022017-01-03 18:57:35 +0000436 ndn::KeyChain& m_keyChain;
akmhoque53353462014-04-22 08:43:45 -0500437 ConfParameter m_confParam;
akmhoquec8a10f72014-04-25 18:42:55 -0500438 AdjacencyList m_adjacencyList;
439 NamePrefixList m_namePrefixList;
akmhoque53353462014-04-22 08:43:45 -0500440 bool m_isDaemonProcess;
akmhoquefdbddb12014-05-02 18:35:19 -0500441 std::string m_configFileName;
akmhoque53353462014-04-22 08:43:45 -0500442 Lsdb m_nlsrLsdb;
akmhoquefdbddb12014-05-02 18:35:19 -0500443 int64_t m_adjBuildCount;
akmhoque53353462014-04-22 08:43:45 -0500444 bool m_isBuildAdjLsaSheduled;
445 bool m_isRouteCalculationScheduled;
446 bool m_isRoutingTableCalculating;
akmhoque53353462014-04-22 08:43:45 -0500447 RoutingTable m_routingTable;
akmhoque53353462014-04-22 08:43:45 -0500448 Fib m_fib;
akmhoque31d1d4b2014-05-05 22:08:14 -0500449 NamePrefixTable m_namePrefixTable;
Laqin Fan54a43f02017-03-08 12:31:30 -0600450
laqinfand22da512017-05-25 17:29:53 -0500451 ndn::mgmt::Dispatcher m_localhostDispatcher;
452 ndn::mgmt::Dispatcher m_routerNameDispatcher;
453
Vince Lehmand6bb3fa2015-04-24 14:21:39 -0500454 LsdbDatasetInterestHandler m_lsdbDatasetHandler;
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700455
Vince Lehmanf7eec4f2015-05-08 19:02:31 -0500456PUBLIC_WITH_TESTS_ELSE_PRIVATE:
457 HelloProtocol m_helloProtocol;
458
Vince Lehman7b616582014-10-17 16:25:39 -0500459private:
dmcoomes9f936662017-03-02 10:33:09 -0600460 std::shared_ptr<ndn::CertificateCacheTtl> m_certificateCache;
Vince Lehmanc2acdcb2015-04-29 11:14:35 -0500461 security::CertificateStore m_certStore;
Nick Gordond5c1a372016-10-31 13:56:23 -0500462
463PUBLIC_WITH_TESTS_ELSE_PRIVATE:
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700464 Validator m_validator;
Nick Gordond5c1a372016-10-31 13:56:23 -0500465
466private:
467 ndn::nfd::Controller m_controller;
468 ndn::nfd::Controller m_faceDatasetController;
Joao Pereira97473d42015-07-03 16:57:27 -0400469 ndn::security::SigningInfo m_signingInfo;
Yingdi Yu20e3a6e2014-05-26 23:16:10 -0700470 ndn::Name m_defaultCertName;
alvy297f4162015-03-03 17:15:33 -0600471 update::PrefixUpdateProcessor m_prefixUpdateProcessor;
Nick Gordon4d2c6c02017-01-20 13:18:46 -0600472 update::NfdRibCommandProcessor m_nfdRibCommandProcessor;
akmhoquee1765152014-06-30 11:32:01 -0500473
akmhoque060d3022014-08-12 13:35:06 -0500474 ndn::nfd::FaceMonitor m_faceMonitor;
Vince Lehman7b616582014-10-17 16:25:39 -0500475
476 uint32_t m_firstHelloInterval;
Nick Gordond5c1a372016-10-31 13:56:23 -0500477
478 friend class NlsrRunner;
akmhoque53353462014-04-22 08:43:45 -0500479};
akmhoque298385a2014-02-13 14:13:09 -0600480
Nick Gordonfad8e252016-08-11 14:21:38 -0500481} // namespace nlsr
akmhoqueb1710aa2014-02-19 17:13:36 -0600482
dmcoomes9f936662017-03-02 10:33:09 -0600483#endif // NLSR_NLSR_HPP