Index: core/ipv4/ipv4.c =================================================================== --- core/ipv4/ipv4.c (revision 3579) +++ core/ipv4/ipv4.c (working copy) @@ -600,7 +600,7 @@ if (count) { unsigned long carry = 0; do { - unsigned long w = *(unsigned long *) buff; + unsigned int w = *(unsigned int *) buff; count--; buff += 4; result += carry; @@ -819,7 +819,7 @@ switch (iph->protocol) { case IPPROTO_ICMP: icmph = (struct icmphdr *)(iph + 1); - ptr += sprintf(ptr, "%u %u ", + ptr += sprintf(ptr, "%Zu %u ", iplen - sizeof(struct icmphdr), iph->protocol); if (len < sizeof(struct icmphdr)) { @@ -855,7 +855,7 @@ case IPPROTO_UDP: udph = (struct udphdr *)(iph + 1); - ptr += sprintf(ptr, "%u %u ", + ptr += sprintf(ptr, "%Zu %u ", iplen - sizeof(struct udphdr), iph->protocol); if (len < sizeof(struct udphdr)) { @@ -891,7 +891,7 @@ tcph = (struct tcphdr *)(iph + 1); if (len < sizeof(struct tcphdr)) { /* Assume no tcp options... */ - ptr += sprintf(ptr, "%u %u ", + ptr += sprintf(ptr, "%Zu %u ", iplen - sizeof(*tcph), iph->protocol); ptr += sprintf(ptr, "-TRUNCATED-");