publisher: fix encoding bug in routing table publisher
refs: #4453
Change-Id: I03e819e963f0957f3d40ff25e378f2b9b17357b7
diff --git a/tools/nlsrc.hpp b/tools/nlsrc.hpp
index a5c6368..cc5a1f6 100644
--- a/tools/nlsrc.hpp
+++ b/tools/nlsrc.hpp
@@ -123,9 +123,6 @@
std::string
getLsaInfoString(const nlsr::tlv::LsaInfo& info);
- std::string
- getDesString(const nlsr::tlv::Destination& des);
-
void
recordAdjacencyLsa(const nlsr::tlv::AdjacencyLsa& lsa);
@@ -136,7 +133,7 @@
recordNameLsa(const nlsr::tlv::NameLsa& lsa);
void
- recordRtable(const nlsr::tlv::RoutingTable& rts);
+ recordRtable(const nlsr::tlv::RoutingTableStatus& rts);
void
printLsdb();
@@ -160,15 +157,11 @@
std::string adjacencyLsaString;
std::string coordinateLsaString;
std::string nameLsaString;
- std::string rtString;
};
Router&
getRouterLsdb(const nlsr::tlv::LsaInfo& info);
- Router&
- getRouterRT(const nlsr::tlv::Destination& des);
-
typedef std::map<const ndn::Name, Router> RouterMap;
RouterMap m_routers;
@@ -177,6 +170,7 @@
ndn::Face& m_face;
ndn::security::ValidatorNull m_validator;
std::string commandString;
+ std::string m_rtString;
std::deque<std::function<void()>> m_fetchSteps;