map: honor pre-resolve param in map-t 29/28329/2
authorAlexander Chernavin <achernavin@netgate.com>
Tue, 11 Feb 2020 14:57:09 +0000 (09:57 -0500)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 12 Aug 2020 23:01:47 +0000 (23:01 +0000)
commitcaa082a1062b7701a189b34d676863e317999499
treea2bc18aa24f7ab758073088682df7ba0e3ae1ba4
parent18d2d6bd4a2c968707e912356a0ee02496fba2fc
map: honor pre-resolve param in map-t

With this commit, forward the translated packet directly to the
specified next-hop if pre-resolve param is enabled in MAP-T.

Type: fix

Change-Id: Ie26080c7820318c7982599577a4af6e4d01a0574
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
(cherry picked from commit f145c15631ba62e798395499f83a2f8a91ae83c7)
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
src/plugins/map/ip4_map.c
src/plugins/map/ip4_map_t.c
src/plugins/map/ip6_map.c
src/plugins/map/ip6_map_t.c
src/plugins/map/map.h
src/plugins/map/test/test_map.py