src: configuration file parsing
used boost::property_tree::info_parser for parsing nlsr's configuration file and
changed configuration command style to info command style. Removed tokenizer from
nlsr
Refs: #1542
Change-Id: If017ddd7eef5caa59b33940bfc27a71aa4de266b
diff --git a/src/route/fib-entry.cpp b/src/route/fib-entry.cpp
index 524b04c..ba3d77a 100644
--- a/src/route/fib-entry.cpp
+++ b/src/route/fib-entry.cpp
@@ -9,25 +9,20 @@
bool
FibEntry::isEqualNextHops(NexthopList& nhlOther)
{
- if (m_nexthopList.getSize() != nhlOther.getSize())
- {
+ if (m_nexthopList.getSize() != nhlOther.getSize()) {
return false;
}
- else
- {
+ else {
uint32_t nhCount = 0;
std::list<NextHop>::iterator it1, it2;
for (it1 = m_nexthopList.getNextHops().begin(),
it2 = nhlOther.getNextHops().begin() ;
- it1 != m_nexthopList.getNextHops().end() ; it1++, it2++)
- {
- if (it1->getConnectingFace() == it2->getConnectingFace())
- {
+ it1 != m_nexthopList.getNextHops().end() ; it1++, it2++) {
+ if (it1->getConnectingFaceUri() == it2->getConnectingFaceUri()) {
it1->setRouteCost(it2->getRouteCost());
nhCount++;
}
- else
- {
+ else {
break;
}
}