More progress with buffers
diff --git a/model/pit/ndn-pit-entry.cc b/model/pit/ndn-pit-entry.cc
index 4dcf6d0..af66570 100644
--- a/model/pit/ndn-pit-entry.cc
+++ b/model/pit/ndn-pit-entry.cc
@@ -70,6 +70,18 @@
NS_LOG_INFO ("Updated lifetime to " << m_expireTime.ToDouble (Time::S));
}
+void
+Entry::OffsetLifetime (const Time &offsetTime)
+{
+ m_expireTime += offsetTime;
+ if (m_expireTime < Simulator::Now ())
+ {
+ m_expireTime = Simulator::Now ();
+ }
+ NS_LOG_INFO ("Offsetting lifetime to " << m_expireTime.ToDouble (Time::S));
+}
+
+
const NameComponents &
Entry::GetPrefix () const
{