diff options
| author | Bill Fenner <fenner@FreeBSD.org> | 1998-03-20 00:43:29 +0000 |
|---|---|---|
| committer | Bill Fenner <fenner@FreeBSD.org> | 1998-03-20 00:43:29 +0000 |
| commit | 75daa6a53f0b571d81f9cf495289e45844050e74 (patch) | |
| tree | 192ee8fd09e93fefc0c938c5bd1b6570e9ff51b8 /sys/netinet/tcp_input.c | |
| parent | 34f72be5af5f2aab0be1256ced4aa22028e84951 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_input.c')
| -rw-r--r-- | sys/netinet/tcp_input.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 24740ef389c7..e9cb3c8a4709 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_input.c 8.12 (Berkeley) 5/24/95 - * $Id: tcp_input.c,v 1.69 1998/01/27 09:15:08 davidg Exp $ + * $Id: tcp_input.c,v 1.70 1998/02/26 05:25:28 dg Exp $ */ #include "opt_tcpdebug.h" @@ -736,19 +736,13 @@ findpcb: /* * If the state is SYN_RECEIVED: - * if seg contains SYN/ACK, send a RST. * if seg contains an ACK, but not for our SYN/ACK, send a RST. */ case TCPS_SYN_RECEIVED: - if (tiflags & TH_ACK) { - if (tiflags & TH_SYN) { - tcpstat.tcps_badsyn++; - goto dropwithreset; - } - if (SEQ_LEQ(ti->ti_ack, tp->snd_una) || - SEQ_GT(ti->ti_ack, tp->snd_max)) + if ((tiflags & TH_ACK) && + (SEQ_LEQ(ti->ti_ack, tp->snd_una) || + SEQ_GT(ti->ti_ack, tp->snd_max))) goto dropwithreset; - } break; /* |
