Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162636353
D56067.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
839 B
Referenced Files
None
Subscribers
None
D56067.diff
View Options
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -396,10 +396,11 @@
if (already_listening)
goto out;
- if (error == 0)
+ if (error == 0) {
in_pcblisten(inp);
- if (tp->t_flags & TF_FASTOPEN)
- tp->t_tfo_pending = tcp_fastopen_alloc_counter();
+ if (tp->t_flags & TF_FASTOPEN)
+ tp->t_tfo_pending = tcp_fastopen_alloc_counter();
+ }
out:
tcp_bblog_pru(tp, PRU_LISTEN, error);
@@ -460,12 +461,11 @@
if (already_listening)
goto out;
- if (error == 0)
+ if (error == 0) {
in_pcblisten(inp);
- if (tp->t_flags & TF_FASTOPEN)
- tp->t_tfo_pending = tcp_fastopen_alloc_counter();
-
- if (error != 0)
+ if (tp->t_flags & TF_FASTOPEN)
+ tp->t_tfo_pending = tcp_fastopen_alloc_counter();
+ } else
inp->inp_vflag = vflagsav;
out:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 7:14 AM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35128925
Default Alt Text
D56067.diff (839 B)
Attached To
Mode
D56067: tcp_usrreq: allocate tfo counter when required
Attached
Detach File
Event Timeline
Log In to Comment