route: Fixing unregistration of fib entries
FaceMap was constructed from the face result of face registration.
But result gives a diffrent uri (instead of maia.cs.memphis.edu
it gives 141.225.11.107:6363). When unregistering it was not
working as NLSR tries to compare face uri of naming format. Fixed
that issue. Now unregistration of name prefixes works fine.
Change-Id: Iafb3790113f735b1bb0ea68360bf70d09ec54243
diff --git a/src/route/fib.hpp b/src/route/fib.hpp
index 5121535..c593a5b 100644
--- a/src/route/fib.hpp
+++ b/src/route/fib.hpp
@@ -124,7 +124,8 @@
void
registerPrefixInNfd(const ndn::nfd::ControlParameters& faceCreateResult,
const ndn::Name& namePrefix, uint64_t faceCost,
- const ndn::time::milliseconds& timeout);
+ const ndn::time::milliseconds& timeout,
+ const std::string& faceUri);
void
registerPrefixInNfd(const ndn::nfd::ControlParameters& faceCreateResult,
@@ -146,8 +147,8 @@
const std::string& message, const std::string& faceUri);
void
- onSuccess(const ndn::nfd::ControlParameters& commandSuccessResult,
- const std::string& message);
+ onUnregistration(const ndn::nfd::ControlParameters& commandSuccessResult,
+ const std::string& message);
void
onFailure(uint32_t code, const std::string& error, const std::string& message);