mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
tcp: no data on SYN segments unless doing TFO
Ensure that there is no data on SYN segments unless doing TFO. This check is already in RACK and BBR. Reported by: glebius Reviewed by: rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D44384
This commit is contained in:
parent
88f557a2a9
commit
af700f430f
|
@ -470,6 +470,12 @@ tcp_default_output(struct tcpcb *tp)
|
|||
(tp->t_tfo_client_cookie_len == 0)) ||
|
||||
(flags & TH_RST)))
|
||||
len = 0;
|
||||
|
||||
/* Without fast-open there should never be data sent on a SYN. */
|
||||
if ((flags & TH_SYN) && !(tp->t_flags & TF_FASTOPEN)) {
|
||||
len = 0;
|
||||
}
|
||||
|
||||
if (len <= 0) {
|
||||
/*
|
||||
* If FIN has been sent but not acked,
|
||||
|
|
Loading…
Reference in a new issue