diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-10-19 04:01:19 -0700 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2018-10-19 04:01:19 -0700 |
commit | da41d729b9339528b6c9bd1e859792303d15eb78 (patch) | |
tree | 116fe56e60da986d7258d298d9ba70406e3f3f16 /src/plugins/nat/in2out_ed.c | |
parent | 2f6d7bb93c157b874efb79a2d1583a4c368bf89a (diff) |
NAT44: fix ICMP virtual fragmentation reassembly (VPP-1466)
Change-Id: I8006bca02948d9121f474a3d14f0576747bb3c51
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/in2out_ed.c')
-rw-r--r-- | src/plugins/nat/in2out_ed.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/nat/in2out_ed.c b/src/plugins/nat/in2out_ed.c index 8db53c08142..f9f8d776eb4 100644 --- a/src/plugins/nat/in2out_ed.c +++ b/src/plugins/nat/in2out_ed.c @@ -1960,11 +1960,8 @@ nat44_ed_in2out_reass_node_fn_inline (vlib_main_t * vm, } /* Hairpinning */ - if (PREDICT_TRUE (proto0 != SNAT_PROTOCOL_ICMP)) - nat44_reass_hairpinning (sm, b0, ip0, s0->out2in.port, - s0->ext_host_port, proto0, 1); - else - snat_icmp_hairpinning (sm, b0, ip0, icmp0, 1); + nat44_reass_hairpinning (sm, b0, ip0, s0->out2in.port, + s0->ext_host_port, proto0, 1); /* Accounting */ nat44_session_update_counters (s0, now, |