mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 17:25:09 +00:00
Remove a redundant `if' from tcp_reass().
Correct a typo in a comment (SEND_SYN -> NEEDSYN). Reviewed by: David Greenman
This commit is contained in:
parent
a9680d7112
commit
d3eede9d32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9818
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* From: @(#)tcp_input.c 8.5 (Berkeley) 4/10/94
|
||||
* $Id: tcp_input.c,v 1.26 1995/06/29 18:11:22 wollman Exp $
|
||||
* $Id: tcp_input.c,v 1.27 1995/07/10 15:39:13 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef TUBA_INCLUDE
|
||||
|
@ -217,8 +217,6 @@ tcp_reass(tp, ti, m)
|
|||
ti = tp->seg_next;
|
||||
if (ti == (struct tcpiphdr *)tp || ti->ti_seq != tp->rcv_nxt)
|
||||
return (0);
|
||||
if (tp->t_state == TCPS_SYN_RECEIVED && ti->ti_len)
|
||||
return (0);
|
||||
do {
|
||||
tp->rcv_nxt += ti->ti_len;
|
||||
flags = ti->ti_flags & TH_FIN;
|
||||
|
@ -1529,7 +1527,7 @@ tcp_input(m, iphlen)
|
|||
socantrcvmore(so);
|
||||
/*
|
||||
* If connection is half-synchronized
|
||||
* (ie SEND_SYN flag on) then delay ACK,
|
||||
* (ie NEEDSYN flag on) then delay ACK,
|
||||
* so it may be piggybacked when SYN is sent.
|
||||
* Otherwise, since we received a FIN then no
|
||||
* more input can be expected, send ACK now.
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* From: @(#)tcp_input.c 8.5 (Berkeley) 4/10/94
|
||||
* $Id: tcp_input.c,v 1.26 1995/06/29 18:11:22 wollman Exp $
|
||||
* $Id: tcp_input.c,v 1.27 1995/07/10 15:39:13 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef TUBA_INCLUDE
|
||||
|
@ -217,8 +217,6 @@ tcp_reass(tp, ti, m)
|
|||
ti = tp->seg_next;
|
||||
if (ti == (struct tcpiphdr *)tp || ti->ti_seq != tp->rcv_nxt)
|
||||
return (0);
|
||||
if (tp->t_state == TCPS_SYN_RECEIVED && ti->ti_len)
|
||||
return (0);
|
||||
do {
|
||||
tp->rcv_nxt += ti->ti_len;
|
||||
flags = ti->ti_flags & TH_FIN;
|
||||
|
@ -1529,7 +1527,7 @@ tcp_input(m, iphlen)
|
|||
socantrcvmore(so);
|
||||
/*
|
||||
* If connection is half-synchronized
|
||||
* (ie SEND_SYN flag on) then delay ACK,
|
||||
* (ie NEEDSYN flag on) then delay ACK,
|
||||
* so it may be piggybacked when SYN is sent.
|
||||
* Otherwise, since we received a FIN then no
|
||||
* more input can be expected, send ACK now.
|
||||
|
|
Loading…
Reference in a new issue