From 7704afe2c20a2c2a240874209b5803e22187b620 Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Tue, 21 May 2019 16:20:11 -0500 Subject: [PATCH] nat44: make nat44-ed-hairpin-src follow arc It defaults to using interface-output as the next node. If other output features are enabled on the ip4-output arc, they get skipped. That makes me sad. Change-Id: I3f4d3320fb8092918e1e0663c66baca1c74c26ec Signed-off-by: Matthew Smith --- src/plugins/nat/nat44_hairpinning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/nat/nat44_hairpinning.c b/src/plugins/nat/nat44_hairpinning.c index daa96ffe714..81478f43c52 100644 --- a/src/plugins/nat/nat44_hairpinning.c +++ b/src/plugins/nat/nat44_hairpinning.c @@ -826,7 +826,7 @@ snat_hairpin_src_fn_inline (vlib_main_t * vm, b0 = vlib_get_buffer (vm, bi0); sw_if_index0 = vnet_buffer (b0)->sw_if_index[VLIB_RX]; - next0 = SNAT_HAIRPIN_SRC_NEXT_INTERFACE_OUTPUT; + vnet_feature_next (&next0, b0); /* *INDENT-OFF* */ pool_foreach (i, sm->output_feature_interfaces, -- 2.16.6