Add ASF measurement lifetime as strategy parameter
Refs: #5332
Change-Id: Iff42ca0870d4263f0ad8757a67b87e52dbfff9f5
diff --git a/daemon/fw/asf-strategy.hpp b/daemon/fw/asf-strategy.hpp
index 83bff13..b41b4ab 100644
--- a/daemon/fw/asf-strategy.hpp
+++ b/daemon/fw/asf-strategy.hpp
@@ -85,9 +85,6 @@
void
sendNoRouteNack(Face& face, const shared_ptr<pit::Entry>& pitEntry);
-private:
- AsfMeasurements m_measurements{getMeasurements()};
-
NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE:
struct FaceStatsForwardingCompare
{
@@ -96,6 +93,7 @@
};
using FaceStatsForwardingSet = std::set<FaceStats, FaceStatsForwardingCompare>;
+ AsfMeasurements m_measurements{getMeasurements()};
std::unique_ptr<RetxSuppressionExponential> m_retxSuppression;
ProbingModule m_probing{m_measurements};
size_t m_nMaxTimeouts = 3;