mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue