fib: don't refresh neighbor router's FIB entry (it is already installed w/ expiry=never)
refs: #4799
Change-Id: Ib55687655ccd8673eeae14d8418e458ad8ab00aa
diff --git a/src/route/nexthop-list.cpp b/src/route/nexthop-list.cpp
index 698e06a..8b9366e 100644
--- a/src/route/nexthop-list.cpp
+++ b/src/route/nexthop-list.cpp
@@ -107,14 +107,13 @@
}
void
-NexthopList::writeLog()
+NexthopList::writeLog() const
{
int i = 1;
- for (std::set<NextHop, NextHopComparator>::iterator it = m_nexthopList.begin();
- it != m_nexthopList.end() ; it++, i++) {
- NLSR_LOG_DEBUG("Nexthop " << i << ": " << (*it).getConnectingFaceUri()
- << " Route Cost: " << (*it).getRouteCost());
+ for (const auto& nexthop : m_nexthopList) {
+ NLSR_LOG_DEBUG("Nexthop " << i++ << ": " << nexthop.getConnectingFaceUri() <<
+ " Route Cost: " << nexthop.getRouteCost());
}
}