When we receive an out-of-window SYN for an "ESTABLISHED" connection,

ACK the SYN as required by RFC793, rather than ignoring it. NetBSD
have had a similar change since 1999.

PR:		93236
Submitted by:	Grant Edwards <grante@visi.com>
MFC after:	1 month
This commit is contained in:
David Malone 2006-06-19 12:33:52 +00:00
parent 1ebe29d0de
commit 5e1aa27995
2 changed files with 4 additions and 0 deletions

View File

@ -1786,6 +1786,8 @@ tcp_input(m, off0)
if (tp->t_state == TCPS_SYN_RECEIVED ||
(tp->t_flags & TF_NEEDSYN))
goto step6;
else if (tp->t_flags & TF_ACKNOW)
goto dropafterack;
else
goto drop;
}

View File

@ -1786,6 +1786,8 @@ tcp_input(m, off0)
if (tp->t_state == TCPS_SYN_RECEIVED ||
(tp->t_flags & TF_NEEDSYN))
goto step6;
else if (tp->t_flags & TF_ACKNOW)
goto dropafterack;
else
goto drop;
}