model: Add ns3::ndn::Pit::MaxPitEntryLifetime to configure maximum time for which routers are willing to accept any incoming interest

Actual PIT lifetime should be minimum of MaxPitEntryLifetime and
InterestLifetime specified in the Interest packet.
diff --git a/model/pit/ndn-pit.h b/model/pit/ndn-pit.h
index dd237c1..4c07fd2 100644
--- a/model/pit/ndn-pit.h
+++ b/model/pit/ndn-pit.h
@@ -107,7 +107,7 @@
    */
   virtual Ptr<pit::Entry>
   Create (Ptr<const Interest> header) = 0;
-  
+
   /**
    * @brief Mark PIT entry deleted
    * @param entry PIT entry
@@ -153,16 +153,30 @@
   ////////////////////////////////////////////////////////////////////////////
   ////////////////////////////////////////////////////////////////////////////
   ////////////////////////////////////////////////////////////////////////////
-  
+
   /**
    * @brief Static call to cheat python bindings
    */
   static inline Ptr<Pit>
   GetPit (Ptr<Object> node);
 
+  /**
+   * @brief Get maximum PIT entry lifetime
+   */
+  inline const Time&
+  GetMaxPitEntryLifetime () const;
+
+  /**
+   * @brief Set maximum PIT entry lifetime
+   */
+  inline void
+  SetMaxPitEntryLifetime (const Time &maxLifetime);
+
 protected:
   // configuration variables. Check implementation of GetTypeId for more details
-  Time    m_PitEntryPruningTimout;
+  Time m_PitEntryPruningTimout;
+
+  Time m_maxPitEntryLifetime;
 };
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -181,6 +195,19 @@
   return node->GetObject<Pit> ();
 }
 
+inline const Time&
+Pit::GetMaxPitEntryLifetime () const
+{
+  return m_maxPitEntryLifetime;
+}
+
+inline void
+Pit::SetMaxPitEntryLifetime (const Time &maxLifetime)
+{
+  m_maxPitEntryLifetime = maxLifetime;
+}
+
+
 } // namespace ndn
 } // namespace ns3