src: change initialization order
Send Hello Interest after route to neighbor is successfully registered
--> First Hello interval is eliminated
--> After Hello Nack, wait exponentially before processing it as a timeout
Register sync route for each neighbor after its Hello Data is validated
refs: #5009
Change-Id: Ice39a591f1e58e474b494d93c913fa45e10f24f2
diff --git a/src/route/fib.hpp b/src/route/fib.hpp
index f2d952a..25677e3 100644
--- a/src/route/fib.hpp
+++ b/src/route/fib.hpp
@@ -22,7 +22,6 @@
#ifndef NLSR_ROUTE_FIB_HPP
#define NLSR_ROUTE_FIB_HPP
-#include "face-map.hpp"
#include "fib-entry.hpp"
#include "test-access-control.hpp"
@@ -164,30 +163,17 @@
/*! \brief Log registration success, and update the Face ID associated with a URI.
*/
void
- onRegistrationSuccess(const ndn::nfd::ControlParameters& commandSuccessResult,
- const std::string& message, const ndn::FaceUri& faceUri);
+ onRegistrationSuccess(const ndn::nfd::ControlParameters& param,
+ const ndn::FaceUri& faceUri);
/*! \brief Retry a prefix (next-hop) registration up to three (3) times.
*/
void
onRegistrationFailure(const ndn::nfd::ControlResponse& response,
- const std::string& message,
const ndn::nfd::ControlParameters& parameters,
const ndn::FaceUri& faceUri,
uint8_t times);
- /*! \brief Log a successful unregistration.
- */
- void
- onUnregistrationSuccess(const ndn::nfd::ControlParameters& commandSuccessResult,
- const std::string& message);
-
- /*! \brief Log an unregistration failure. Does not retry.
- */
- void
- onUnregistrationFailure(const ndn::nfd::ControlResponse& response,
- const std::string& message);
-
/*! \brief Log a successful strategy setting.
*/
void
@@ -240,6 +226,7 @@
public:
static const std::string MULTICAST_STRATEGY;
static const std::string BEST_ROUTE_V2_STRATEGY;
+ ndn::util::Signal<Fib, const ndn::Name&> onPrefixRegistrationSuccess;
private:
ndn::Scheduler& m_scheduler;
@@ -247,7 +234,6 @@
ndn::nfd::Controller m_controller;
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
- FaceMap m_faceMap;
std::map<ndn::Name, FibEntry> m_table;
private: