From: Klement Sekera Date: Thu, 22 Apr 2021 11:38:58 +0000 (+0200) Subject: nat: correct detection of icmp bypass presence X-Git-Tag: v21.10-rc0~199 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1ca6c65e5109b220d25dace08ae758c31e5ea5a2;p=vpp.git nat: correct detection of icmp bypass presence Type: fix Signed-off-by: Klement Sekera Change-Id: Iead167e7497e0779c440f7fb243014a06ae2b452 --- diff --git a/src/plugins/nat/nat44-ed/nat44_ed_out2in.c b/src/plugins/nat/nat44-ed/nat44_ed_out2in.c index e8cf7c930fa..45455576994 100644 --- a/src/plugins/nat/nat44-ed/nat44_ed_out2in.c +++ b/src/plugins/nat/nat44-ed/nat44_ed_out2in.c @@ -614,8 +614,8 @@ create_bypass_for_fwd (snat_main_t *sm, vlib_buffer_t *b, snat_session_t *s, if (ip->protocol == IP_PROTOCOL_ICMP) { - if (nat_get_icmp_session_lookup_values (b, ip, &lookup_saddr, - &lookup_sport, &lookup_daddr, + if (nat_get_icmp_session_lookup_values (b, ip, &lookup_daddr, + &lookup_sport, &lookup_saddr, &lookup_dport, &lookup_protocol)) return; }