map: fix hop limit expiration at br 91/25991/4
authorVladimir Ratnikov <vratnikov@netgate.com>
Wed, 18 Mar 2020 12:20:08 +0000 (08:20 -0400)
committerOle Trøan <otroan@employees.org>
Wed, 25 Mar 2020 08:19:14 +0000 (08:19 +0000)
commitb1bd8760ce9b1416c8a7f12e411cfcf60de2929f
tree7eeed964b15adef909f474c18135e1736186e5d3
parent753b96f31b0f34983bbc213516f1a05825d868a8
map: fix hop limit expiration at br

Before this patch, packet was dropped in ip4-input,
but ip4-map-t node dropped response due to
'security check failed'
This patch checkes if hop_limit==1 and sets error
and next frame and sends icmp6 response correctly

Type: fix

Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com>
Change-Id: I85a6af58205b05754ef8c45a94817bb84f915c85
src/plugins/map/ip6_map_t.c
src/plugins/map/test/test_map.py