fw: add strategy notification for Interests dropped by LpReliability
add dropped Interest counter to faces
refs #3823
Change-Id: I9910b66932d74383203e8f3732bb45cade83b972
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index 69a93de..6d57a2d 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -61,6 +61,10 @@
[this, &face] (const lp::Nack& nack) {
this->startProcessNack(face, nack);
});
+ face.onDroppedInterest.connect(
+ [this, &face] (const Interest& interest) {
+ this->onDroppedInterest(face, interest);
+ });
});
m_faceTable.beforeRemove.connect([this] (Face& face) {
@@ -481,6 +485,12 @@
++m_counters.nOutNacks;
}
+void
+Forwarder::onDroppedInterest(Face& outFace, const Interest& interest)
+{
+ m_strategyChoice.findEffectiveStrategy(interest.getName()).onDroppedInterest(outFace, interest);
+}
+
static inline bool
compare_InRecord_expiry(const pit::InRecord& a, const pit::InRecord& b)
{