Use MulticastStrategy instead of deprecated BroadcastStrategy
refs: #3011
Change-Id: I7c32cf13945853fe76008271a77878d2bf6e9215
diff --git a/src/nlsr.cpp b/src/nlsr.cpp
index 1aa2b8c..2409956 100644
--- a/src/nlsr.cpp
+++ b/src/nlsr.cpp
@@ -138,9 +138,11 @@
void
Nlsr::setStrategies()
{
- std::string strategy("ndn:/localhost/nfd/strategy/broadcast");
+ const std::string strategy("ndn:/localhost/nfd/strategy/multicast");
+
ndn::Name broadcastKeyPrefix = DEFAULT_BROADCAST_PREFIX;
broadcastKeyPrefix.append("KEYS");
+
m_fib.setStrategy(m_confParam.getLsaPrefix(), strategy, 0);
m_fib.setStrategy(broadcastKeyPrefix, strategy, 0);
m_fib.setStrategy(m_confParam.getChronosyncPrefix(), strategy, 0);