fw: attach PIT token upon CS hit
refs #5090
Change-Id: I496ec0865dc4b8dfb35efe2be8453eda96a2ea9b
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index 8ab209a..adfa3e1 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -32,6 +32,7 @@
#include "common/logger.hpp"
#include "table/cleanup.hpp"
+#include <ndn-cxx/lp/pit-token.hpp>
#include <ndn-cxx/lp/tags.hpp>
namespace nfd {
@@ -225,6 +226,7 @@
++m_counters.nCsHits;
data.setTag(make_shared<lp::IncomingFaceIdTag>(face::FACEID_CONTENT_STORE));
+ data.setTag(interest.getTag<lp::PitToken>());
// FIXME Should we lookup PIT for other Interests that also match the data?
pitEntry->isSatisfied = true;