diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-27 17:22:10 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-27 17:22:10 +0000 |
commit | fcbad8c27f9207306bbc31ca1471c21f780abe0a (patch) | |
tree | de43fbfd876483d92027827a96f03a6719621b0c /nuttx/net | |
parent | 1784e4785b4c640df807d5adf5b6d24df48e5f1d (diff) | |
download | px4-firmware-fcbad8c27f9207306bbc31ca1471c21f780abe0a.tar.gz px4-firmware-fcbad8c27f9207306bbc31ca1471c21f780abe0a.tar.bz2 px4-firmware-fcbad8c27f9207306bbc31ca1471c21f780abe0a.zip |
Add support for SRAM on board the STM3240G-EVAL board
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4430 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/net')
-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; } |