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/include | |
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/include')
-rw-r--r-- | nuttx/include/net/uip/uip.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/nuttx/include/net/uip/uip.h b/nuttx/include/net/uip/uip.h index e002777c3..facac0bcf 100644 --- a/nuttx/include/net/uip/uip.h +++ b/nuttx/include/net/uip/uip.h @@ -185,10 +185,18 @@ struct uip_conn /* Higher level logic can retain application specific information * in the following: * - * data_event() is called on all events. May return one of the following: - * UIP_CLOSE - Gracefully close the current connection - * UIP_ABORT - Abort (reset) the current connection on an error that - * prevents UIP_CLOSE from working. + * data_event() is called on all events. Normally, the input flags are + * returned, however, the implemenation may set one of the following: + * + * UIP_CLOSE - Gracefully close the current connection + * UIP_ABORT - Abort (reset) the current connection on an error that + * prevents UIP_CLOSE from working. + * + * Or clear the following: + * + * UIP_NEWDATA - May be cleared to suppress returning the ACK response. + * (dev->d_len should also be set to zero in this case). + * * accept() is called when the TCP logic has created a connection * connection_event() is called on any of the subset of connection-related events */ @@ -255,18 +263,17 @@ struct uip_stats } icmp; /* ICMP statistics. */ struct - { uip_stats_t drop; /* Number of dropped TCP segments. */ - uip_stats_t recv; /* Number of recived TCP segments. */ + uip_stats_t recv; /* Number of received TCP segments. */ uip_stats_t sent; /* Number of sent TCP segments. */ uip_stats_t chkerr; /* Number of TCP segments with a bad checksum. */ uip_stats_t ackerr; /* Number of TCP segments with a bad ACK number. */ uip_stats_t rst; /* Number of recevied TCP RST (reset) segments. */ uip_stats_t rexmit; /* Number of retransmitted TCP segments. */ uip_stats_t syndrop; /* Number of dropped SYNs due to too few - connections was avaliable. */ - uip_stats_t synrst; /* Number of SYNs for closed ports, triggering a RST. */ + available connections. */ + uip_stats_t synrst; /* Number of SYNs for closed ports triggering a RST. */ } tcp; /* TCP statistics. */ #ifdef CONFIG_NET_UDP |