map: fix translation of icmp6 error messages 14/25714/5
authorAlexander Chernavin <achernavin@netgate.com>
Fri, 6 Mar 2020 11:11:07 +0000 (06:11 -0500)
committerMatthew Smith <mgsmith@netgate.com>
Tue, 24 Mar 2020 14:28:34 +0000 (14:28 +0000)
commit46d0ff3945404f7c95e0e504f98f466e155ab753
treea517e9ed68c3afe0d57db62e717ed6e5f32188c0
parent1839fe165c7ffb834775b8582fe0ee2321ff2ab6
map: fix translation of icmp6 error messages

Translation of ICMPv6 error messages to ICMP error messages fails
because the sender port is not set that leads to securtiy check
failure.

With this commit, during ICMPv6 error messages translation, get the
sender port value from the inner packet.

Type: fix

Change-Id: I1ee295a3685fab4837172edfb629a699f49afbee
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
src/plugins/map/test/test_map_br.py
src/vnet/ip/ip6_to_ip4.h