src: Changing prefix registration's flag and FaceMonitor
Refs: #1841 #1843 Change-Id: I7ab74d529cf6f9f54ec1db1415f54f36f2229723
This commit is contained in:
1 parent
48265996f2
commit
060d302bf2
7 files changed
+86
-211
No files matched your search
@@ -217,7 +217,8 @@ void
|
||||
HelloProtocol::registerPrefixes(const ndn::Name& adjName, const std::string& faceUri,
|
||||
double linkCost, const ndn::time::milliseconds& timeout)
|
||||
{
|
||||
m_nlsr.getFib().registerPrefix(adjName, faceUri, linkCost, timeout, 0,
|
||||
m_nlsr.getFib().registerPrefix(adjName, faceUri, linkCost, timeout,
|
||||
ndn::nfd::ROUTE_FLAG_CAPTURE, 0,
|
||||
ndn::bind(&HelloProtocol::onRegistrationSuccess,
|
||||
this, _1, adjName,timeout),
|
||||
ndn::bind(&HelloProtocol::onRegistrationFailure,
|
||||
@@ -236,11 +237,14 @@ HelloProtocol::onRegistrationSuccess(const ndn::nfd::ControlParameters& commandS
|
||||
std::string faceUri = adjacent->getConnectingFaceUri();
|
||||
double linkCost = adjacent->getLinkCost();
|
||||
m_nlsr.getFib().registerPrefix(m_nlsr.getConfParameter().getChronosyncPrefix(),
|
||||
faceUri, linkCost, timeout, 0);
|
||||
faceUri, linkCost, timeout,
|
||||
ndn::nfd::ROUTE_FLAG_CAPTURE, 0);
|
||||
m_nlsr.getFib().registerPrefix(m_nlsr.getConfParameter().getLsaPrefix(),
|
||||
faceUri, linkCost, timeout, 0);
|
||||
faceUri, linkCost, timeout,
|
||||
ndn::nfd::ROUTE_FLAG_CAPTURE, 0);
|
||||
m_nlsr.getFib().registerPrefix(broadcastKeyPrefix,
|
||||
faceUri, linkCost, timeout, 0);
|
||||
faceUri, linkCost, timeout,
|
||||
ndn::nfd::ROUTE_FLAG_CAPTURE, 0);
|
||||
m_nlsr.setStrategies();
|
||||
|
||||
/* interest name: /<neighbor>/NLSR/INFO/<router> */
|
||||
|
||||
Reference in new issue
Block a user