conf: Make event intervals configurable
User can specify the intervals for the first Hello Interest,
AdjLsa building, and routing calculation in the conf file.
refs: #2071
Change-Id: Ic8eb29d433069086955178bc42b5f8fc8f4149d3
diff --git a/nlsr.conf b/nlsr.conf
index f669d7f..52ce870 100644
--- a/nlsr.conf
+++ b/nlsr.conf
@@ -49,6 +49,16 @@
hello-interval 60 ; interest sending interval in seconds. Default value 60
; valid values 30-90
+ ; adj-lsa-build-interval is the time to wait in seconds after an Adjacency LSA build is scheduled
+ ; before actually building the Adjacency LSA
+
+ adj-lsa-build-interval 5 ; default value 5. Valid values 0-5. It is recommended that
+ ; adj-lsa-build-interval have a lower value than routing-calc-interval
+
+ ; first-hello-interval is the time to wait in seconds before sending the first Hello Interest
+
+ first-hello-interval 10 ; Default value 10. Valid values 0-10
+
; neighbor command is used to configure router's neighbor. Each neighbor will need
; one block of neighbor command
@@ -98,6 +108,12 @@
max-faces-per-prefix 3 ; default value 0. Valid value 0-60. By default (value 0) NLSR adds
; all available faces for each reachable name prefixes in NDN FIB
+
+ ; routing-calc-interval is the time to wait in seconds after a routing table calculation is
+ ; scheduled before actually performing the routing table calculation
+
+ routing-calc-interval 15 ; default value 15. Valid values 0-15. It is recommended that
+ ; routing-calc-interval have a higher value than adj-lsa-build-interval
}
; the advertising section contains the configuration settings of the name prefixes