summaryrefslogtreecommitdiffhomepage
path: root/config/default.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/default.go')
-rw-r--r--config/default.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/default.go b/config/default.go
index 1b9b59c5..f4a2e301 100644
--- a/config/default.go
+++ b/config/default.go
@@ -1,7 +1,8 @@
package config
const (
- DEFAULT_HOLDTIME = 90
+ DEFAULT_HOLDTIME = 90
+ DEFAULT_IDLE_HOLDTIME_AFTER_RESET = 30
)
func setTimersTypeDefault(timersT *TimersType) {
@@ -11,6 +12,9 @@ func setTimersTypeDefault(timersT *TimersType) {
if timersT.KeepaliveInterval == 0 {
timersT.KeepaliveInterval = timersT.HoldTime / 3
}
+ if timersT.IdleHoldTImeAfterReset == 0 {
+ timersT.IdleHoldTImeAfterReset = float64(DEFAULT_IDLE_HOLDTIME_AFTER_RESET)
+ }
}
func SetNeighborTypeDefault(neighborT *NeighborType) {