Commit in reactos/drivers/net/tcpip/transport/tcp on arty_20040329
tcp.c+5-11.10.2.1 -> 1.10.2.2
Allow a correct response to get us into TCPiReceiveSynSent.

reactos/drivers/net/tcpip/transport/tcp
tcp.c 1.10.2.1 -> 1.10.2.2
diff -u -r1.10.2.1 -r1.10.2.2
--- tcp.c	29 Mar 2004 07:01:37 -0000	1.10.2.1
+++ tcp.c	29 Mar 2004 07:44:13 -0000	1.10.2.2
@@ -631,6 +631,7 @@
 
   Connection->LocalAddress = Connection->AddressFile->ADE->Address;
   Connection->LocalPort    = Connection->AddressFile->Port;
+  Connection->State        = ctSynSent;
 
   Status = AddrBuildAddress(
     (PTA_ADDRESS)(&((PTRANSPORT_ADDRESS)ConnInfo->RemoteAddress)->Address[0]),
@@ -917,7 +918,7 @@
 
   /* FIXME: Protect AddrFile->Connection */
 
-  if ((TCPHeader->Flags & TCP_ACK) > 0)
+  if ((TCPHeader->Flags & TCP_ACK) > 0 && !(TCPHeader->Flags & TCP_SYN))
     {
       /* FIXME: If SEG.ACK =< ISS, or SEG.ACK > SND.NXT, send a reset (unless
           the RST bit is set, if so drop the segment and return)
@@ -991,8 +992,10 @@
               /* Continue */
             }
         }
+#if 0
       TI_DbgPrint(MIN_TRACE, ("?.\n"));
       return; /* ??? */
+#endif
     }
 
   /* The ACK is ok, or there is no ACK, and it the segment did not contain a RST */
@@ -1741,6 +1744,7 @@
                              TCPHeader->DestinationPort,
                              IPPROTO_TCP,
                              &SearchContext);
+  
   if (AddrFile) {
     ULONG TotalLength;
     ULONG DataOffset;
CVSspam 0.2.8