table+fw: move forwarding semantics out of PIT entry
refs #3546
Change-Id: I1e6f87fd81176c116b6d758156da1cf96ea03608
diff --git a/daemon/fw/retx-suppression-exponential.cpp b/daemon/fw/retx-suppression-exponential.cpp
index a462f8a..3cca0ab 100644
--- a/daemon/fw/retx-suppression-exponential.cpp
+++ b/daemon/fw/retx-suppression-exponential.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2015, Regents of the University of California,
+ * Copyright (c) 2014-2016, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -24,6 +24,7 @@
*/
#include "retx-suppression-exponential.hpp"
+#include "pit-algorithm.hpp"
namespace nfd {
namespace fw {
@@ -72,7 +73,7 @@
RetxSuppressionExponential::decide(const Face& inFace, const Interest& interest,
pit::Entry& pitEntry) const
{
- bool isNewPitEntry = !pitEntry.hasUnexpiredOutRecords();
+ bool isNewPitEntry = !hasPendingOutRecords(pitEntry);
if (isNewPitEntry) {
return NEW;
}