No longer set capture flag on advertised prefixes
Previously, all registered routes from NLSR would have
the capture flag set. This is desirable for some application
prefixes but does not necessarily make sense for advertised
prefixes as a whole.
Refs: #5360
Change-Id: If7e0f8e7d03aada18db9db4408f8d4167970e659
diff --git a/src/route/fib.hpp b/src/route/fib.hpp
index 7be0001..ade5779 100644
--- a/src/route/fib.hpp
+++ b/src/route/fib.hpp
@@ -41,7 +41,7 @@
NextHopsUriSortedSet nexthopSet;
};
-using AfterRefreshCallback = std::function<void(FibEntry&)>;
+using AfterRefreshCallback = std::function<void(FibEntry&, uint64_t)>;
class AdjacencyList;
class ConfParameter;
@@ -86,9 +86,10 @@
*
* \param name The name prefix that the next-hops apply to
* \param allHops A complete list of next-hops to associate with name.
+ * \param routeFlags Route inheritance flags
*/
void
- update(const ndn::Name& name, const NexthopList& allHops);
+ update(const ndn::Name& name, const NexthopList& allHops, uint64_t routeFlags);
void
setEntryRefreshTime(int32_t fert)
@@ -145,7 +146,7 @@
* \sa Fib::removeOldNextHopsFromFibEntryAndNfd
*/
void
- addNextHopsToFibEntryAndNfd(FibEntry& entry, const NextHopsUriSortedSet& hopsToAdd);
+ addNextHopsToFibEntryAndNfd(FibEntry& entry, const NextHopsUriSortedSet& hopsToAdd, uint64_t routeFlags);
unsigned int
getNumberOfFacesForName(const NexthopList& nextHopList);
@@ -194,18 +195,18 @@
* \sa Fib::scheduleLoop
*/
void
- scheduleEntryRefresh(FibEntry& entry, const AfterRefreshCallback& refreshCb);
+ scheduleEntryRefresh(FibEntry& entry, uint64_t routeFlags, const AfterRefreshCallback& refreshCb);
private:
/*! \brief Continue the entry refresh cycle.
*/
void
- scheduleLoop(FibEntry& entry);
+ scheduleLoop(FibEntry& entry, uint64_t routeFlags);
/*! \brief Refreshes an entry in NFD.
*/
void
- refreshEntry(const ndn::Name& name, AfterRefreshCallback refreshCb);
+ refreshEntry(const ndn::Name& name, uint64_t routeFlags, AfterRefreshCallback refreshCb);
public:
static inline const ndn::Name MULTICAST_STRATEGY{"/localhost/nfd/strategy/multicast"};