From a500a9ab6d73b61328c3e42e4b1e103ad0656e07 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 27 Feb 2012 17:22:10 +0000 Subject: Add support for SRAM on board the STM3240G-EVAL board git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4430 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/net/uip/uip_tcpinput.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nuttx/net/uip/uip_tcpinput.c') diff --git a/nuttx/net/uip/uip_tcpinput.c b/nuttx/net/uip/uip_tcpinput.c index bdeccf4b7..5dc3435cc 100644 --- a/nuttx/net/uip/uip_tcpinput.c +++ b/nuttx/net/uip/uip_tcpinput.c @@ -179,16 +179,18 @@ void uip_tcpinput(struct uip_driver_s *dev) /* The connection structure was successfully allocated. Now see if * there is an application waiting to accept the connection (or at * least queue it it for acceptance). + * + * TCP state machine should move to the ESTABLISHED state only after + * it has received ACK from the host. */ - conn->tcpstateflags = UIP_ESTABLISHED; - conn->crefs = 1; + conn->crefs = 1; if (uip_accept(dev, conn, tmp16) != OK) { /* No, then we have to give the connection back */ - conn->crefs = 0; + conn->crefs = 0; uip_tcpfree(conn); conn = NULL; } -- cgit v1.2.3