const u_char *cp;
cp = (const u_char *)(ip + 1);
- length = (IP_HL(ip) << 2);
+ length = IP_HL(ip) * 4;
if (length < sizeof(struct ip))
goto trunc;
length -= sizeof(struct ip);
/*
* Compute a V4-style checksum by building a pseudoheader.
*/
-int
+uint16_t
nextproto4_cksum(netdissect_options *ndo,
const struct ip *ip, const uint8_t *data,
u_int len, u_int covlen, u_int next_proto)