summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_reass.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-08-26 22:27:16 +0000
committerwollman <wollman@FreeBSD.org>1994-08-26 22:27:16 +0000
commit9489a8e21b05852697c1ba0cb2f1eb5b712ab5d6 (patch)
tree3ae2edc49c3ba83ddc4ee96ff81515b95dbf5876 /sys/netinet/tcp_reass.c
parentbc652e20929b5cc726e4d55dc13f033e39c46287 (diff)
downloadFreeBSD-src-9489a8e21b05852697c1ba0cb2f1eb5b712ab5d6.zip
FreeBSD-src-9489a8e21b05852697c1ba0cb2f1eb5b712ab5d6.tar.gz
Obey RFC 793, section 3.4:
Several examples of connection initiation follow. Although these examples do not show connection synchronization using data-carrying segments, this is perfectly legitimate, so long as the receiving TCP doesn't deliver the data to the user until it is clear the data is valid (i.e., the data must be buffered at the receiver until the connection reaches the ESTABLISHED state).
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r--sys/netinet/tcp_reass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 674b7d9..68fc751 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.5 (Berkeley) 4/10/94
- * $Id: tcp_input.c,v 1.5 1994/08/02 07:49:01 davidg Exp $
+ * $Id: tcp_input.c,v 1.6 1994/08/18 22:35:32 wollman Exp $
*/
#ifndef TUBA_INCLUDE
@@ -182,7 +182,7 @@ present:
* Present data to user, advancing rcv_nxt through
* completed sequence space.
*/
- if (TCPS_HAVERCVDSYN(tp->t_state) == 0)
+ if (TCPS_HAVEESTABLISHED(tp->t_state) == 0)
return (0);
ti = tp->seg_next;
if (ti == (struct tcpiphdr *)tp || ti->ti_seq != tp->rcv_nxt)
OpenPOWER on IntegriCloud