Index: /trunk/Mars/mcore/checksum.h
===================================================================
--- /trunk/Mars/mcore/checksum.h	(revision 16563)
+++ /trunk/Mars/mcore/checksum.h	(revision 16564)
@@ -1,4 +1,6 @@
 #ifndef MARS_checksum
 #define MARS_checksum
+
+#include <arpa/inet.h>
 
 namespace std
@@ -78,6 +80,6 @@
 
         // This is about as twice as fast as the loop above
-        // ntohs is CPU optimized, hilo[n] doesn't need to be computed
-        const uint32_t *end = sbuf + len/2;
+        // ntohs is CPU optimized, i%2 doesn't need to be computed
+        const uint16_t *end = sbuf + len/2;
         while (1)
         {
