diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-27 17:22:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-27 17:22:10 +0000 |
commit | a500a9ab6d73b61328c3e42e4b1e103ad0656e07 (patch) | |
tree | de43fbfd876483d92027827a96f03a6719621b0c /nuttx/net/uip/uip_tcpinput.c | |
parent | 8da4bbae2be9d158c6f9a9fd5e2bd3283f626f8d (diff) | |
download | px4-nuttx-a500a9ab6d73b61328c3e42e4b1e103ad0656e07.tar.gz px4-nuttx-a500a9ab6d73b61328c3e42e4b1e103ad0656e07.tar.bz2 px4-nuttx-a500a9ab6d73b61328c3e42e4b1e103ad0656e07.zip |
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
Diffstat (limited to 'nuttx/net/uip/uip_tcpinput.c')
-rw-r--r-- | nuttx/net/uip/uip_tcpinput.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; } |