Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NAT44: endpoint-dependent mode session timeout improvement (VPP-1423)
[vpp.git]
/
src
/
plugins
/
nat
/
out2in_ed.c
diff --git
a/src/plugins/nat/out2in_ed.c
b/src/plugins/nat/out2in_ed.c
index
4236285
..
ef77233
100644
(file)
--- 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;
}
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);
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;
}
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);
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 */
}
/* 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);
if (!s)
{
nat44_delete_user_with_no_session (sm, u, thread_index);