fw: Strategy::sendInterest allows changing Nonce
This commit also includes some tweaks in forwarding pipelines.
refs #1596
Change-Id: I65a4129be24089357b28fa9d35a3451e0d9ae258
diff --git a/daemon/fw/strategy.hpp b/daemon/fw/strategy.hpp
index eaeed26..d690b0f 100644
--- a/daemon/fw/strategy.hpp
+++ b/daemon/fw/strategy.hpp
@@ -113,7 +113,8 @@
/// send Interest to outFace
VIRTUAL_WITH_TESTS void
sendInterest(shared_ptr<pit::Entry> pitEntry,
- shared_ptr<Face> outFace);
+ shared_ptr<Face> outFace,
+ bool wantNewNonce = false);
/** \brief decide that a pending Interest cannot be forwarded
*
@@ -150,9 +151,10 @@
inline void
Strategy::sendInterest(shared_ptr<pit::Entry> pitEntry,
- shared_ptr<Face> outFace)
+ shared_ptr<Face> outFace,
+ bool wantNewNonce)
{
- m_forwarder.onOutgoingInterest(pitEntry, *outFace);
+ m_forwarder.onOutgoingInterest(pitEntry, *outFace, wantNewNonce);
}
inline void