Another checkpoint
diff --git a/model/pit/ndn-pit-entry.cc b/model/pit/ndn-pit-entry.cc
index 95b81dd..4dcf6d0 100644
--- a/model/pit/ndn-pit-entry.cc
+++ b/model/pit/ndn-pit-entry.cc
@@ -241,6 +241,11 @@
return m_maxRetxCount;
}
+Ptr<const InterestHeader>
+Entry::GetInterest () const
+{
+ return m_interest;
+}
std::ostream& operator<< (std::ostream& os, const Entry &entry)
{
diff --git a/model/pit/ndn-pit-entry.h b/model/pit/ndn-pit-entry.h
index 1dc4264..ecec2a6 100644
--- a/model/pit/ndn-pit-entry.h
+++ b/model/pit/ndn-pit-entry.h
@@ -272,6 +272,12 @@
inline void
RemoveFwTag ();
+ /**
+ * @brief Get InterestHeader (if several interests are received, then nonce is from the first Interest)
+ */
+ Ptr<const InterestHeader>
+ GetInterest () const;
+
private:
friend std::ostream& operator<< (std::ostream& os, const Entry &entry);