rib: Cancel expiration on unregistration
refs: #1902
Change-Id: I85a75370ecc3677c8a9ebf3a48f3c0857598da2d
diff --git a/rib/rib-manager.hpp b/rib/rib-manager.hpp
index d08ab50..dffb24a 100644
--- a/rib/rib-manager.hpp
+++ b/rib/rib-manager.hpp
@@ -114,6 +114,9 @@
ControlParameters& parameters);
void
+ expireEntry(const shared_ptr<const Interest>& request, ControlParameters& params);
+
+ void
onCommandValidated(const shared_ptr<const Interest>& request);
void
@@ -169,6 +172,7 @@
void
onControlHeaderError(uint32_t code, const std::string& reason);
+
static bool
extractParameters(const Name::Component& parameterComponent,
ControlParameters& extractedParameters);
@@ -216,8 +220,10 @@
void
onFetchFaceStatusTimeout();
-private:
+PUBLIC_WITH_TESTS_ELSE_PRIVATE:
Rib m_managedRib;
+
+private:
ndn::Face& m_face;
ndn::nfd::Controller m_nfdController;
ndn::KeyChain m_keyChain;