From 0a62e5a3d817c3400be122c58d0311c298047580 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Thu, 2 Nov 2017 01:38:49 -0700 Subject: LISP: fix negative mapping timeout, VPP-1043 Change-Id: Ie57b81f8743f14182813558887d84d6667c81d43 Signed-off-by: Filip Tehlar --- src/vnet/lisp-cp/control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c index c12728800c3..c1edc3a9315 100644 --- a/src/vnet/lisp-cp/control.c +++ b/src/vnet/lisp-cp/control.c @@ -3872,7 +3872,8 @@ process_map_reply (map_records_arg_t * a) } if ((u32) ~ 0 != m->ttl) - mapping_start_expiration_timer (lcm, dst_map_index, MAPPING_TIMEOUT); + mapping_start_expiration_timer (lcm, dst_map_index, + (m->ttl == 0) ? 0 : MAPPING_TIMEOUT); } /* remove pending map request entry */ -- cgit 1.2.3-korg