When doing TSO correctly do the check to prevent a maximum sized IP packet
from overflowing.
This commit is contained in:
@@ -739,7 +739,7 @@ tcp_output(struct tcpcb *tp)
|
||||
if (len + optlen + ipoptlen > tp->t_maxopd) {
|
||||
flags &= ~TH_FIN;
|
||||
if (tso) {
|
||||
if (len > TCP_MAXWIN) {
|
||||
if (len > TCP_MAXWIN - hdrlen) {
|
||||
len = TCP_MAXWIN - hdrlen;
|
||||
len = len - (len % (tp->t_maxopd - optlen));
|
||||
sendalot = 1;
|
||||
|
||||
Reference in New Issue
Block a user