LISP: fix negative mapping timeout, VPP-1043

Change-Id: Ie57b81f8743f14182813558887d84d6667c81d43
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
(cherry picked from commit 0a62e5a3d817c3400be122c58d0311c298047580)
This commit is contained in:
Filip Tehlar
2017-11-02 01:38:49 -07:00
committed by Lori Jakab
parent e3c13e8b5b
commit 5a9ecce76a

View File

@ -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 */