Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154781892
D25115.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
937 B
Referenced Files
None
Subscribers
None
D25115.diff
View Options
Index: head/sys/netinet/tcp_usrreq.c
===================================================================
--- head/sys/netinet/tcp_usrreq.c
+++ head/sys/netinet/tcp_usrreq.c
@@ -2239,6 +2239,11 @@
return (error);
INP_WLOCK_RECHECK(inp);
+ if ((tp->t_state != TCPS_CLOSED) &&
+ (tp->t_state != TCPS_LISTEN)) {
+ error = EINVAL;
+ goto unlock_and_done;
+ }
if (tfo_optval.enable) {
if (tp->t_state == TCPS_LISTEN) {
if (!V_tcp_fastopen_server_enable) {
@@ -2246,7 +2251,6 @@
goto unlock_and_done;
}
- tp->t_flags |= TF_FASTOPEN;
if (tp->t_tfo_pending == NULL)
tp->t_tfo_pending =
tcp_fastopen_alloc_counter();
@@ -2265,8 +2269,8 @@
tp->t_tfo_client_cookie_len =
TCP_FASTOPEN_PSK_LEN;
}
- tp->t_flags |= TF_FASTOPEN;
}
+ tp->t_flags |= TF_FASTOPEN;
} else
tp->t_flags &= ~TF_FASTOPEN;
goto unlock_and_done;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 10:36 AM (1 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32499069
Default Alt Text
D25115.diff (937 B)
Attached To
Mode
D25115: Restrict enabling TCP-FASTOPEN to end-points in CLOSED or LISTEN state
Attached
Detach File
Event Timeline
Log In to Comment