From 8fdc015ddde7620d37d5a46cc66deb9791e634c1 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Mon, 24 Sep 2018 04:41:28 -0700 Subject: NAT44: endpoint-dependent mode session timeout improvement (VPP-1423) Change-Id: I630f3da1ea4e6e50a50f1352c097becef1efe3c0 Signed-off-by: Matus Fabian --- src/plugins/nat/out2in_ed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/nat/out2in_ed.c') diff --git a/src/plugins/nat/out2in_ed.c b/src/plugins/nat/out2in_ed.c index 4236285df8d..ef772334292 100644 --- a/src/plugins/nat/out2in_ed.c +++ b/src/plugins/nat/out2in_ed.c @@ -233,7 +233,7 @@ create_session_for_static_mapping_ed (snat_main_t * sm, return 0; } - s = nat_ed_session_alloc (sm, u, thread_index); + s = nat_ed_session_alloc (sm, u, thread_index, now); if (!s) { nat44_delete_user_with_no_session (sm, u, thread_index); @@ -421,7 +421,7 @@ create_bypass_for_fwd (snat_main_t * sm, ip4_header_t * ip, u32 rx_fib_index, return; } - s = nat_ed_session_alloc (sm, u, thread_index); + s = nat_ed_session_alloc (sm, u, thread_index, now); if (!s) { nat44_delete_user_with_no_session (sm, u, thread_index); @@ -623,7 +623,7 @@ nat44_ed_out2in_unknown_proto (snat_main_t * sm, } /* Create a new session */ - s = nat_ed_session_alloc (sm, u, thread_index); + s = nat_ed_session_alloc (sm, u, thread_index, now); if (!s) { nat44_delete_user_with_no_session (sm, u, thread_index); -- cgit 1.2.3-korg