summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-11-02 01:38:49 -0700
committerFlorin Coras <florin.coras@gmail.com>2017-11-02 18:29:29 +0000
commit0a62e5a3d817c3400be122c58d0311c298047580 (patch)
tree07f85e02321e45693618411e8bcd0858cd2331bb /src
parent60c1c7c0397eaeb201f0fe300285bda4ae3ef707 (diff)
LISP: fix negative mapping timeout, VPP-1043
Change-Id: Ie57b81f8743f14182813558887d84d6667c81d43 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src')
-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 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 */