summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJing Peng <jing@meter.com>2022-07-08 12:52:01 -0400
committerMatthew Smith <mgsmith@netgate.com>2022-09-09 13:16:08 +0000
commitde4eb7fa212a33a0e08062f75aaf5fe5ad2a9cc0 (patch)
treed444886a0bf5f6a19b1ac42d493b30aa131c2fec
parent4a5564da10ba17581c026b50238d52274e9a4902 (diff)
nat: fix nat44-ed-in2out fast path next node
When a session is found expired, the next node of in2out fast path should be in2out slow path instead of out2in slow path. Type: fix Signed-off-by: Jing Peng <jing@meter.com> Change-Id: If1dd920502089c25b33bea5434823b0496a44499
-rw-r--r--src/plugins/nat/nat44-ed/nat44_ed_in2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat44-ed/nat44_ed_in2out.c b/src/plugins/nat/nat44-ed/nat44_ed_in2out.c
index b0e0784373e..2d8d96a0f5a 100644
--- a/src/plugins/nat/nat44-ed/nat44_ed_in2out.c
+++ b/src/plugins/nat/nat44-ed/nat44_ed_in2out.c
@@ -1193,7 +1193,7 @@ nat44_ed_in2out_fast_path_node_fn_inline (vlib_main_t *vm,
// session is closed, go slow path
nat44_ed_free_session_data (sm, s0, thread_index, 0);
nat_ed_session_delete (sm, s0, thread_index, 1);
- next[0] = NAT_NEXT_OUT2IN_ED_SLOW_PATH;
+ next[0] = def_slow;
goto trace0;
}