summaryrefslogtreecommitdiff
path: root/nuttx/include/net/uip
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-19 22:05:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-19 22:05:12 +0000
commit9f6ea5af87d527ee2e8b4a125881bcf0741aabad (patch)
treecffda222cfdd6e55ebd5ad9372ea4ef81f5f0e9d /nuttx/include/net/uip
parent6082f71dcfd8f55b731a32ef27abf441ddee0b3c (diff)
downloadpx4-nuttx-9f6ea5af87d527ee2e8b4a125881bcf0741aabad.tar.gz
px4-nuttx-9f6ea5af87d527ee2e8b4a125881bcf0741aabad.tar.bz2
px4-nuttx-9f6ea5af87d527ee2e8b4a125881bcf0741aabad.zip
Fix an error in the handling of TCP/IP sequence numbers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2392 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net/uip')
-rw-r--r--nuttx/include/net/uip/uip-arch.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/nuttx/include/net/uip/uip-arch.h b/nuttx/include/net/uip/uip-arch.h
index 34cdf8a4a..72288cba6 100644
--- a/nuttx/include/net/uip/uip-arch.h
+++ b/nuttx/include/net/uip/uip-arch.h
@@ -295,28 +295,19 @@ typedef int (*uip_poll_callback_t)(struct uip_driver_s *dev);
extern int uip_poll(struct uip_driver_s *dev, uip_poll_callback_t callback);
extern int uip_timer(struct uip_driver_s *dev, uip_poll_callback_t callback, int hsec);
-/* By defining UIP_ARCH_CHKSUM, the architecture can replace the following
- * functions with hardware assisted solutions.
+/* By defining UIP_ARCH_CHKSUM, the architecture can replace up_incr32
+ * with hardware assisted solutions.
*/
/* Carry out a 32-bit addition.
*
* op32 - A pointer to a 4-byte array representing a 32-bit
* integer in network byte order (big endian). This value may not
- * be word aligned.
+ * be word aligned. The value pointed to by op32 is modified in place
*
- * For uip_incr32, the value pointed to by op32 is modified in place
- * For uip_add32, the value pointed to by op32 is unmodified
-*
* op16 - A 16-bit integer in host byte order.
- *
- * sum - The location to return the result (32-bit, network byte order,
- * possibly unaligned).
- *
- * uip_add32 only.
*/
-extern void uip_add32(const uint8_t *op32, uint16_t op16, uint8_t *sum);
extern void uip_incr32(uint8_t *op32, uint16_t op16);
/* Calculate the Internet checksum over a buffer.