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/name-prefix-table.hpp b/src/route/name-prefix-table.hpp
index 8fca574..c39b5f4 100644
--- a/src/route/name-prefix-table.hpp
+++ b/src/route/name-prefix-table.hpp
@@ -66,6 +66,7 @@
/*! \brief Adds a destination to the specified name prefix.
\param name The name prefix
\param destRouter The destination router prefix
+ \param routeFlags Route inheritance flags from NFD
This method adds a router to a name prefix table entry. If the
name prefix table entry does not exist, it is created. The method
@@ -77,7 +78,7 @@
notified of the change to the NPT entry, too.
*/
void
- addEntry(const ndn::Name& name, const ndn::Name& destRouter);
+ addEntry(const ndn::Name& name, const ndn::Name& destRouter, uint64_t routeFlags = ndn::nfd::ROUTE_FLAG_CAPTURE);
/*! \brief Removes a destination from a name prefix table entry.
\param name The name prefix