diff options
author | Vladimir Isaev <visaev@netgate.com> | 2020-02-26 14:41:46 +0300 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-03-04 15:57:20 +0000 |
commit | 92511311118ee1cffac646d10c1edae6e94d90d7 (patch) | |
tree | 117b08c5bb74a11ad4df4b1bbb6a34fff6dfb051 /src/plugins/map/ip6_map_t.c | |
parent | f13830ce76873390e7d3080e66d5ddb5234754f0 (diff) |
map: fix map port calculation for ICMP
type should be used to get ICMP type instead of code.
Type: fix
Signed-off-by: Vladimir Isaev <visaev@netgate.com>
Change-Id: Iabf4ae38befde18309caff8efd9e1d956a2fde82
Diffstat (limited to 'src/plugins/map/ip6_map_t.c')
-rw-r--r-- | src/plugins/map/ip6_map_t.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/map/ip6_map_t.c b/src/plugins/map/ip6_map_t.c index 7d0cd42ff0c..ce973ea2e7f 100644 --- a/src/plugins/map/ip6_map_t.c +++ b/src/plugins/map/ip6_map_t.c @@ -603,12 +603,12 @@ ip6_map_t (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) next0 = IP6_MAPT_NEXT_MAPT_ICMP; if (((icmp46_header_t *) u8_ptr_add (ip60, - vnet_buffer (p0)->map_t.v6.l4_offset))->code == + vnet_buffer (p0)->map_t.v6.l4_offset))->type == ICMP6_echo_reply || ((icmp46_header_t *) u8_ptr_add (ip60, vnet_buffer (p0)->map_t.v6.l4_offset))-> - code == ICMP6_echo_request) + type == ICMP6_echo_request) map_port0 = l4_src_port; } else |