aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2018-06-07 12:00:43 -0400
committerFlorin Coras <florin.coras@gmail.com>2018-06-07 18:54:35 +0000
commit3c22affe8b1c60b4d34a387331251f44c3db4fd3 (patch)
tree4b1a7dca4873eaac26f8172610b1835e9f0d51eb /src
parenta6cca8323c6dd2bafd45bcb0c27731d34833cf6b (diff)
Fix IP scan neighbor API/CLI handling of interval and stale
Change-Id: I77264c4398e6fad461bb4dc10867a1f9c3accec0 Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ip/ip_neighbor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip/ip_neighbor.c b/src/vnet/ip/ip_neighbor.c
index b9c03aa703c..c97fb2b3cd4 100644
--- a/src/vnet/ip/ip_neighbor.c
+++ b/src/vnet/ip/ip_neighbor.c
@@ -57,13 +57,13 @@ ip_neighbor_scan_enable_disable (ip_neighbor_scan_arg_t * arg)
if (arg->mode)
{
cfg->scan_interval = arg->scan_interval ?
- arg->scan_interval * 1.0 : IP_NEIGHBOR_DEF_SCAN_INTERVAL;
+ arg->scan_interval * 60.0 : IP_NEIGHBOR_DEF_SCAN_INTERVAL;
cfg->max_proc_time = arg->max_proc_time ?
arg->max_proc_time * 1e-6 : IP_NEIGHBOR_DEF_MAX_PROC_TIME;
cfg->scan_int_delay = arg->scan_int_delay ?
arg->scan_int_delay * 1e-3 : IP_NEIGHBOR_DEF_SCAN_INT_DELAY;
cfg->stale_threshold = arg->stale_threshold ?
- arg->stale_threshold * 1.0 : cfg->scan_interval * 4;
+ arg->stale_threshold * 60.0 : cfg->scan_interval * 4;
cfg->max_update = arg->max_update ?
cfg->max_update : IP_NEIGHBOR_DEF_MAX_UPDATE;
}