aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-10-19 13:42:41 +0000
committerMatthew Smith <mgsmith@netgate.com>2020-11-05 20:54:37 +0000
commitc4e6cd088909466a7c13d2ec72a9107d75125da9 (patch)
treea1663f3f9693e3bca5541b4bb4283ca18835b946
parentdcb1db9eb10ce0ff96008f82e119269dc8f3e209 (diff)
nat: fix hairpinning trace
Type: fix Fixes: 17a8ab6857f023bc1436d84808acc58dd614203e Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I597d08d1d2457116e6856fa40cd65987e13a28d4
-rw-r--r--src/plugins/nat/in2out.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/nat/in2out.c b/src/plugins/nat/in2out.c
index ff463ef928f..0656b305df7 100644
--- a/src/plugins/nat/in2out.c
+++ b/src/plugins/nat/in2out.c
@@ -1911,9 +1911,9 @@ VLIB_NODE_FN (snat_in2out_fast_node) (vlib_main_t * vm,
}
/* Hairpinning */
- snat_hairpinning (vm, node, sm, b0, ip0, udp0, tcp0, proto0, 0,
- 0 /* do_trace */ );
- is_hairpinning = 1;
+ is_hairpinning =
+ snat_hairpinning (vm, node, sm, b0, ip0, udp0, tcp0, proto0, 0,
+ 0 /* do_trace */ );
trace0:
if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE)