Fix an issue when TSO and Rack play together. Basically

an retransmission of the initial SYN (with data) would
cause us to strip the SYN and decrement/increase offset/len
which then caused us a -1 offset and a panic.

Reported by:	Larry Rosenman
(Michael Tuexen helped me debug this at the IETF)
This commit is contained in:
Randall Stewart 2019-08-21 10:45:28 +00:00
parent e303ee524e
commit e13ad86c67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351328

View File

@ -7405,9 +7405,6 @@ rack_output(struct tcpcb *tp)
(tp->t_state == TCPS_SYN_RECEIVED))
flags &= ~TH_SYN;
#endif
sb_offset--, len++;
if (sbavail(sb) == 0)
len = 0;
}
/*
* Be careful not to send data and/or FIN on SYN segments. This