mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 10:46:09 +08:00
Update to FreeBSD stable/12 2020-02-10
Git mirror commit 0d1c391321b34b3025cf0e72f2231d836ff76da8.
This commit is contained in:
@@ -933,6 +933,20 @@ send:
|
||||
if (tp->t_flags & TF_NEEDFIN)
|
||||
sendalot = 1;
|
||||
} else {
|
||||
if (optlen + ipoptlen >= tp->t_maxseg) {
|
||||
/*
|
||||
* Since we don't have enough space to put
|
||||
* the IP header chain and the TCP header in
|
||||
* one packet as required by RFC 7112, don't
|
||||
* send it. Also ensure that at least one
|
||||
* byte of the payload can be put into the
|
||||
* TCP segment.
|
||||
*/
|
||||
SOCKBUF_UNLOCK(&so->so_snd);
|
||||
error = EMSGSIZE;
|
||||
sack_rxmit = 0;
|
||||
goto out;
|
||||
}
|
||||
len = tp->t_maxseg - optlen - ipoptlen;
|
||||
sendalot = 1;
|
||||
if (dont_sendalot)
|
||||
|
Reference in New Issue
Block a user