Adding boost logging support for NLSR
diff --git a/src/nlsr_fe.hpp b/src/nlsr_fe.hpp
index 8392dfb..2297315 100644
--- a/src/nlsr_fe.hpp
+++ b/src/nlsr_fe.hpp
@@ -3,6 +3,7 @@
#include<list>
#include <iostream>
+#include <ndn-cpp-dev/util/scheduler.hpp>
#include "nlsr_nexthop.hpp"
#include "nlsr_nhl.hpp"
@@ -15,6 +16,7 @@
FibEntry()
: name()
, timeToRefresh(0)
+ , feSeqNo(0)
{
}
@@ -43,11 +45,33 @@
timeToRefresh=ttr;
}
+ void setFeExpiringEventId(ndn::EventId feid)
+ {
+ feExpiringEventId=feid;
+ }
+
+ ndn::EventId getFeExpiringEventId()
+ {
+ return feExpiringEventId;
+ }
+
+ void setFeSeqNo(int fsn)
+ {
+ feSeqNo=fsn;
+ }
+
+ int getFeSeqNo()
+ {
+ return feSeqNo;
+ }
+
bool isEqualNextHops(Nhl &nhlOther);
private:
string name;
int timeToRefresh;
+ ndn::EventId feExpiringEventId;
+ int feSeqNo;
Nhl nhl;
};