From c4e6cd088909466a7c13d2ec72a9107d75125da9 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Mon, 19 Oct 2020 13:42:41 +0000 Subject: nat: fix hairpinning trace Type: fix Fixes: 17a8ab6857f023bc1436d84808acc58dd614203e Signed-off-by: Klement Sekera Change-Id: I597d08d1d2457116e6856fa40cd65987e13a28d4 --- src/plugins/nat/in2out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) -- cgit 1.2.3-korg