fib: don't refresh neighbor router's FIB entry (it is already installed w/ expiry=never)
refs: #4799
Change-Id: Ib55687655ccd8673eeae14d8418e458ad8ab00aa
diff --git a/src/hello-protocol.cpp b/src/hello-protocol.cpp
index 079bdc4..a5f935c 100644
--- a/src/hello-protocol.cpp
+++ b/src/hello-protocol.cpp
@@ -47,11 +47,15 @@
i.setMustBeFresh(true);
i.setCanBePrefix(true);
m_nlsr.getNlsrFace().expressInterest(i,
- std::bind(&HelloProtocol::onContent,
- this,
- _1, _2),
- std::bind(&HelloProtocol::processInterestTimedOut, // Nack
- this, _1),
+ std::bind(&HelloProtocol::onContent, this, _1, _2),
+ [this] (const ndn::Interest& interest,
+ const ndn::lp::Nack& nack)
+ {
+ NDN_LOG_TRACE("Received Nack with reason " <<
+ nack.getReason());
+ NDN_LOG_TRACE("Treating as timeout");
+ processInterestTimedOut(interest);
+ },
std::bind(&HelloProtocol::processInterestTimedOut,
this, _1));