src: use /localhop component in Sync prefix

refs: #3627

Change-Id: I666f4072601cf7b66bcde632c31c632fabe6e684
This commit is contained in:
Ashlesh Gawande committed 2016-12-13 14:35:44 -06:00
1 parent c5fa320239
commit 44395237b8
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -120,7 +120,8 @@ public:
setNetwork(const ndn::Name& networkName)
{
m_network = networkName;
m_chronosyncPrefix = m_network;
m_chronosyncPrefix.append("localhop");
m_chronosyncPrefix.append("NLSR");
m_chronosyncPrefix.append("sync");
+1 -1
View File
@@ -222,7 +222,7 @@ BOOST_AUTO_TEST_CASE(LinkState)
BOOST_CHECK_EQUAL(conf.getSiteName(), "/memphis.edu/");
BOOST_CHECK_EQUAL(conf.getRouterName(), "/cs/pollux/");
BOOST_CHECK_EQUAL(conf.getRouterPrefix(), "/ndn/memphis.edu/cs/pollux/");
BOOST_CHECK_EQUAL(conf.getChronosyncPrefix(), "/ndn/NLSR/sync");
BOOST_CHECK_EQUAL(conf.getChronosyncPrefix(), "/localhop/NLSR/sync");
BOOST_CHECK_EQUAL(conf.getLsaPrefix(), "/ndn/NLSR/LSA");
BOOST_CHECK_EQUAL(conf.getLsaRefreshTime(), 1800);
BOOST_CHECK_EQUAL(conf.getLsaInterestLifetime(), ndn::time::seconds(3));