diff options
author | Klement Sekera <ksekera@cisco.com> | 2020-04-05 17:07:32 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-04-07 19:27:11 +0000 |
commit | 26c9d4b0cd9c53054d1174bc15aaf8c07e9a8f93 (patch) | |
tree | 8a0c41b6056c16b467b1940f8b41499817220061 /src/plugins/nat/out2in_ed.c | |
parent | c98ef752a202b1b4908866bab34e3b8011ea0f1f (diff) |
nat: don't drop packet for expired session
If session is expired, the packet which we just received might be a one,
which legitimely creates a new session, process it in slow path instead
to decide the outcome.
Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I45628f52d37ae9dee5e8aa58171ff0b86f91f5dd
Diffstat (limited to 'src/plugins/nat/out2in_ed.c')
-rw-r--r-- | src/plugins/nat/out2in_ed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nat/out2in_ed.c b/src/plugins/nat/out2in_ed.c index adf0ec4f726..64f40cf1917 100644 --- a/src/plugins/nat/out2in_ed.c +++ b/src/plugins/nat/out2in_ed.c @@ -795,8 +795,8 @@ nat44_ed_out2in_fast_path_node_fn_inline (vlib_main_t * vm, nat_free_session_data (sm, s0, thread_index, 0); nat44_delete_session (sm, s0, thread_index); - b0->error = node->errors[NAT_OUT2IN_ED_ERROR_SESS_EXPIRED]; - next0 = NAT_NEXT_DROP; + // session no longer exists, go slow path + next0 = NAT_NEXT_OUT2IN_ED_SLOW_PATH; goto trace0; } // |