]> The Tcpdump Group git mirrors - tcpdump/blobdiff - in_cksum.c
The third argument to linkaddr_string is one of the LINKADDR_ enums.
[tcpdump] / in_cksum.c
index 27643057f4730cd2ef4f21b0188af07234944318..eb7c634f0ab0e60f49bed330530cf762c55a2d71 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-# include "config.h"
+# include <config.h>
 #endif
 
 #include "netdissect-stdinc.h"
@@ -196,5 +196,5 @@ in_cksum_shouldbe(uint16_t sum, uint16_t computed_sum)
        shouldbe += ntohs(computed_sum);
        shouldbe = (shouldbe & 0xFFFF) + (shouldbe >> 16);
        shouldbe = (shouldbe & 0xFFFF) + (shouldbe >> 16);
-       return shouldbe;
+       return (uint16_t)shouldbe;
 }