nat44: make nat44-ed-hairpin-src follow arc 43/19743/3
authorMatthew Smith <mgsmith@netgate.com>
Tue, 21 May 2019 21:20:11 +0000 (16:20 -0500)
committerOle Trøan <otroan@employees.org>
Tue, 28 May 2019 10:14:50 +0000 (10:14 +0000)
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 <mgsmith@netgate.com>
src/plugins/nat/nat44_hairpinning.c

index daa96ff..81478f4 100644 (file)
@@ -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,