When doing TSO correctly do the check to prevent a maximum sized IP packet
from overflowing.
This commit is contained in:
parent
481544f3ae
commit
6a2257d911
@ -739,7 +739,7 @@ send:
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user