src: Remove Scheduler instance from Nlsr class
refs: #1981
Change-Id: Iecbe9f975c2740ce04df8593ccde03486d4b7be8
diff --git a/src/route/fib.hpp b/src/route/fib.hpp
index 6b448fb..9893ff2 100644
--- a/src/route/fib.hpp
+++ b/src/route/fib.hpp
@@ -42,8 +42,9 @@
class Fib
{
public:
- Fib(Nlsr& nlsr, ndn::Face& face)
+ Fib(Nlsr& nlsr, ndn::Face& face, ndn::Scheduler& scheduler)
: m_nlsr(nlsr)
+ , m_scheduler(scheduler)
, m_table()
, m_refreshTime(0)
, m_controller(face)
@@ -178,6 +179,8 @@
private:
Nlsr& m_nlsr;
+ ndn::Scheduler& m_scheduler;
+
std::list<FibEntry> m_table;
int32_t m_refreshTime;
ndn::nfd::Controller m_controller;