fw: set incomingFaceId for incoming packets
refs #1237
Change-Id: I8d62aca2c5a08945fdab8511e7c3e4aaf5d02205
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index 1ce3b8f..67aeba7 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -73,6 +73,7 @@
{
// receive Interest
NFD_LOG_DEBUG("onIncomingInterest face=" << inFace.getId() << " interest=" << interest.getName());
+ const_cast<Interest&>(interest).setIncomingFaceId(inFace.getId());
// PIT insert
std::pair<shared_ptr<pit::Entry>, bool>
@@ -181,6 +182,7 @@
{
// receive Data
NFD_LOG_DEBUG("onIncomingData face=" << inFace.getId() << " data=" << data.getName());
+ const_cast<Data&>(data).setIncomingFaceId(inFace.getId());
// PIT match
shared_ptr<pit::DataMatchResult> pitMatches = m_pit.findAllDataMatches(data);