]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Updated comment on optimization and aim of this generic algorithm.
authorlikewise <likewise>
Mon, 12 Dec 2005 09:32:05 +0000 (09:32 +0000)
committerlikewise <likewise>
Mon, 12 Dec 2005 09:32:05 +0000 (09:32 +0000)
src/core/inet.c

index 1ca04746879efdfbb93b8a13e5f5931e73c307a3..d442bc637b2c6415008a5b8f80ad706d98cc5b55 100644 (file)
 
 #include "lwip/sys.h"
 
-/* This is a reference implementation of the checksum algorithm
-
- - it may not work on all architectures, and all processors, particularly
-   if they have issues with alignment and 16 bit access (although this should
-   be fixed since inet.c 1.22).
-
- - in this case you will need to port it to your architecture and 
-   #define LWIP_CHKSUM <your_checksum_routine> 
-   in your sys_arch.h
+/* This is a reference implementation of the checksum algorithm, with the
+ * aim of being simple, correct and fully portable. Checksumming is the
+ * first thing you would want to optimize for your platform. You will
+ * need to port it to your architecture and in your sys_arch.h:\
+ * 
+ * #define LWIP_CHKSUM <your_checksum_routine> 
 */
 #ifndef LWIP_CHKSUM
 #define LWIP_CHKSUM lwip_standard_chksum