Compilation fixes after upgrade to NFD 0.6.6 and removal of old-style CS
Change-Id: I5472ae71675d8419d8d6c70990182ef028803087
diff --git a/helper/ndn-stack-helper.cpp b/helper/ndn-stack-helper.cpp
index 09f0d8c..cf60551 100644
--- a/helper/ndn-stack-helper.cpp
+++ b/helper/ndn-stack-helper.cpp
@@ -53,7 +53,6 @@
: m_isForwarderStatusManagerDisabled(false)
, m_isStrategyChoiceManagerDisabled(false)
, m_needSetDefaultRoutes(false)
- , m_maxCsSize(100)
{
setCustomNdnCxxClocks();
@@ -173,7 +172,7 @@
ndn->getConfig().put("ndnSIM.disable_strategy_choice_manager", true);
}
- ndn->getConfig().put("tables.cs_max_packets", (m_maxCsSize == 0) ? 1 : m_maxCsSize);
+ ndn->getConfig().put("tables.cs_max_packets", m_maxCsSize);
ndn->setCsReplacementPolicy(m_csPolicyCreationFunc);
diff --git a/helper/ndn-stack-helper.hpp b/helper/ndn-stack-helper.hpp
index c2ab6f0..f9ff0f8 100644
--- a/helper/ndn-stack-helper.hpp
+++ b/helper/ndn-stack-helper.hpp
@@ -255,7 +255,7 @@
ObjectFactory m_ndnFactory;
bool m_needSetDefaultRoutes;
- size_t m_maxCsSize;
+ size_t m_maxCsSize = 100;
typedef std::function<std::unique_ptr<nfd::cs::Policy>()> PolicyCreationCallback;
PolicyCreationCallback m_csPolicyCreationFunc;