nlsr: discover Faces from NFD
refs: #2954
Change-Id: I072972d88bce0e1012e96f33577657048b7df1e1
diff --git a/src/conf-parameter.hpp b/src/conf-parameter.hpp
index 9bcd95c..6ec21f5 100644
--- a/src/conf-parameter.hpp
+++ b/src/conf-parameter.hpp
@@ -62,6 +62,19 @@
ROUTING_CALC_INTERVAL_MAX = 15
};
+
+enum {
+ FACE_DATASET_FETCH_TRIES_MIN = 1,
+ FACE_DATASET_FETCH_TRIES_MAX = 10,
+ FACE_DATASET_FETCH_TRIES_DEFAULT = 3
+};
+
+enum {
+ FACE_DATASET_FETCH_INTERVAL_MIN = 1800,
+ FACE_DATASET_FETCH_INTERVAL_MAX = 5400,
+ FACE_DATASET_FETCH_INTERVAL_DEFAULT = 3600
+};
+
enum {
HELLO_RETRIES_MIN = 1,
HELLO_RETRIES_DEFAULT = 3,
@@ -261,6 +274,30 @@
}
void
+ setFaceDatasetFetchTries(uint32_t count)
+ {
+ m_faceDatasetFetchTries = count;
+ }
+
+ uint32_t
+ getFaceDatasetFetchTries() const
+ {
+ return m_faceDatasetFetchTries;
+ }
+
+ void
+ setFaceDatasetFetchInterval(ndn::time::seconds interval)
+ {
+ m_faceDatasetFetchInterval = interval;
+ }
+
+ const ndn::time::seconds
+ getFaceDatasetFetchInterval() const
+ {
+ return m_faceDatasetFetchInterval;
+ }
+
+ void
setLogLevel(const std::string& logLevel)
{
m_logLevel = logLevel;
@@ -423,6 +460,9 @@
uint32_t m_firstHelloInterval;
uint32_t m_routingCalcInterval;
+ uint32_t m_faceDatasetFetchTries;
+ ndn::time::seconds m_faceDatasetFetchInterval;
+
ndn::time::seconds m_lsaInterestLifetime;
uint32_t m_routerDeadInterval;
std::string m_logLevel;