diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-15 22:38:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-15 22:38:32 +0000 |
commit | d6100fb0fad57df531e0774793d188e899943852 (patch) | |
tree | 0f7204a066a470ffde437f8c1a1dfcfd78575736 /nuttx/netutils | |
parent | c7bd005fd19b6ab3d548613495f6f5a0a955387f (diff) | |
download | px4-nuttx-d6100fb0fad57df531e0774793d188e899943852.tar.gz px4-nuttx-d6100fb0fad57df531e0774793d188e899943852.tar.bz2 px4-nuttx-d6100fb0fad57df531e0774793d188e899943852.zip |
Fix probably where packets dropped because there was no recv() in place were being ACKed
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@381 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils')
-rw-r--r-- | nuttx/netutils/telnetd/telnetd.c | 3 | ||||
-rw-r--r-- | nuttx/netutils/webclient/webclient.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/netutils/telnetd/telnetd.c b/nuttx/netutils/telnetd/telnetd.c index 8efeac5cd..bf39826f5 100644 --- a/nuttx/netutils/telnetd/telnetd.c +++ b/nuttx/netutils/telnetd/telnetd.c @@ -345,5 +345,6 @@ uint8 uip_interrupt_event(struct uip_driver_s *dev, struct uip_conn *conn, uint8 { senddata(dev, conn); } - return 0; + + return flags; } diff --git a/nuttx/netutils/webclient/webclient.c b/nuttx/netutils/webclient/webclient.c index 0c13c6c62..929bd6d1e 100644 --- a/nuttx/netutils/webclient/webclient.c +++ b/nuttx/netutils/webclient/webclient.c @@ -264,7 +264,7 @@ static uint16 parse_statusline(struct uip_driver_s *dev, uint16 len) } else { - g_return = UIP_ABORT; + g_return |= UIP_ABORT; webclient_aborted(); return 0; } @@ -409,7 +409,7 @@ static void newdata(struct uip_driver_s *dev) uint8 uip_interrupt_event(struct uip_driver_s *dev, struct uip_conn *conn, uint8 flags) { #warning OBSOLETE -- needs to be redesigned - g_return = 0; + g_return = flags; if (uip_connected_event(flags)) { |