diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-11-02 01:38:49 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-11-02 18:29:29 +0000 |
commit | 0a62e5a3d817c3400be122c58d0311c298047580 (patch) | |
tree | 07f85e02321e45693618411e8bcd0858cd2331bb /src/vnet/lisp-cp/control.c | |
parent | 60c1c7c0397eaeb201f0fe300285bda4ae3ef707 (diff) |
LISP: fix negative mapping timeout, VPP-1043
Change-Id: Ie57b81f8743f14182813558887d84d6667c81d43
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-cp/control.c')
-rw-r--r-- | src/vnet/lisp-cp/control.c | 3 |
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 */ |