aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-11-02 01:38:49 -0700
committerLori Jakab <lorand.jakab@gmail.com>2017-11-06 07:49:17 +0000
commit5a9ecce76a44607180690f835477b5f8e303a9da (patch)
tree5ca0773d6088b8e3e194513b1c5bea8675dd2b98 /src/vnet
parente3c13e8b5b1e799e687fd93783407548e2b96594 (diff)
LISP: fix negative mapping timeout, VPP-1043
Change-Id: Ie57b81f8743f14182813558887d84d6667c81d43 Signed-off-by: Filip Tehlar <ftehlar@cisco.com> (cherry picked from commit 0a62e5a3d817c3400be122c58d0311c298047580)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/lisp-cp/control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c
index 6e97b81e..fe893606 100644
--- a/src/vnet/lisp-cp/control.c
+++ b/src/vnet/lisp-cp/control.c
@@ -3746,7 +3746,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 */