fw: RetxSuppressionExponential
refs #1913
Change-Id: I9bb2bae8d7600722920534f646cc8056b3d4843a
diff --git a/daemon/fw/retx-suppression.hpp b/daemon/fw/retx-suppression.hpp
index 06aaf94..edc2a6d 100644
--- a/daemon/fw/retx-suppression.hpp
+++ b/daemon/fw/retx-suppression.hpp
@@ -54,7 +54,14 @@
* and if so, whether it shall be forwarded or suppressed
*/
virtual Result
- decide(const Face& inFace, const Interest& interest, const pit::Entry& pitEntry) const = 0;
+ decide(const Face& inFace, const Interest& interest, pit::Entry& pitEntry) const = 0;
+
+protected:
+ /** \return last out-record time
+ * \pre pitEntry has one or more unexpired out-records
+ */
+ time::steady_clock::TimePoint
+ getLastOutgoing(const pit::Entry& pitEntry) const;
};
} // namespace fw