34 : m_minRetxInterval(minRetxInterval)
36 BOOST_ASSERT(minRetxInterval > time::milliseconds::zero());
48 time::steady_clock::TimePoint now = time::steady_clock::now();
49 time::steady_clock::Duration sinceLastOutgoing = now - lastOutgoing;
50 bool shouldSuppress = sinceLastOutgoing < m_minRetxInterval;
Interest is retransmission and should be forwarded.
RetxSuppressionResult decidePerPitEntry(pit::Entry &pitEntry) const
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppress...
Interest is retransmission and should be suppressed.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Interest is new (not a retransmission)
bool hasPendingOutRecords(const pit::Entry &pitEntry)
determine whether pitEntry has any pending out-records
time::steady_clock::TimePoint getLastOutgoing(const pit::Entry &pitEntry)
RetxSuppressionFixed(const time::milliseconds &minRetxInterval=DEFAULT_MIN_RETX_INTERVAL)
static const time::milliseconds DEFAULT_MIN_RETX_INTERVAL