Skip to content

Commit dd9aeda

Browse files
Elias RudbergDave Barach
authored andcommitted
nat: in2out/out2in handoff node index bugfix
This fixes a bug in the initialization of handoff_out2in_index and handoff_in2out_index where the node index for out2in was set to the in2out node, and vice versa. Type: fix Signed-off-by: Elias Rudberg <[email protected]> Change-Id: I983ddd3b3cec06f4cb3fb95b2a9cda4ab6d1270f
1 parent 178ecc0 commit dd9aeda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/nat/nat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4027,8 +4027,8 @@ snat_config (vlib_main_t * vm, unformat_input_t * input)
40274027
sm->worker_in2out_cb = snat_get_worker_in2out_cb;
40284028
sm->worker_out2in_cb = snat_get_worker_out2in_cb;
40294029

4030-
sm->handoff_out2in_index = snat_in2out_node.index;
4031-
sm->handoff_in2out_index = snat_out2in_node.index;
4030+
sm->handoff_out2in_index = snat_out2in_node.index;
4031+
sm->handoff_in2out_index = snat_in2out_node.index;
40324032
sm->handoff_in2out_output_index = snat_in2out_output_node.index;
40334033

40344034
sm->in2out_node_index = snat_in2out_node.index;

0 commit comments

Comments
 (0)