diff options
author | Elias Rudberg <elias.rudberg@bahnhof.net> | 2020-03-13 14:26:50 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-03-13 14:24:43 +0000 |
commit | dd9aedaf377f4af8620408843bd3e4610d3df5f9 (patch) | |
tree | 71ad067e361d172a63e9897971caf19ae1e0a700 /src | |
parent | 178ecc0a9a6a4bb8b121d81b25159c67b0fb7061 (diff) |
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 <elias.rudberg@bahnhof.net>
Change-Id: I983ddd3b3cec06f4cb3fb95b2a9cda4ab6d1270f
Diffstat (limited to 'src')
-rwxr-xr-x | src/plugins/nat/nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c index 4803eeb64de..bc2f8c0e1fe 100755 --- a/src/plugins/nat/nat.c +++ b/src/plugins/nat/nat.c @@ -4027,8 +4027,8 @@ snat_config (vlib_main_t * vm, unformat_input_t * input) sm->worker_in2out_cb = snat_get_worker_in2out_cb; sm->worker_out2in_cb = snat_get_worker_out2in_cb; - sm->handoff_out2in_index = snat_in2out_node.index; - sm->handoff_in2out_index = snat_out2in_node.index; + sm->handoff_out2in_index = snat_out2in_node.index; + sm->handoff_in2out_index = snat_in2out_node.index; sm->handoff_in2out_output_index = snat_in2out_output_node.index; sm->in2out_node_index = snat_in2out_node.index; |