X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/da20bc56d6100b5275d6f85c4a25bac1dab4e57e..d7b497cac78b6e22a66a6bae9bdec60a8044f67a:/print-ip6.c diff --git a/print-ip6.c b/print-ip6.c index e13b365a..237c36d4 100644 --- a/print-ip6.c +++ b/print-ip6.c @@ -76,7 +76,7 @@ ip6_finddst(netdissect_options *ndo, struct in6_addr *dst, * the header, in units of 8 octets, excluding * the first 8 octets. */ - ND_TCHECK2(*cp, 2); + ND_TCHECK_2(cp); advance = (EXTRACT_U_1(cp + 1) + 1) << 3; nh = *cp; break; @@ -87,7 +87,7 @@ ip6_finddst(netdissect_options *ndo, struct in6_addr *dst, * marked as reserved, and the header is always * the same size. */ - ND_TCHECK2(*cp, 1); + ND_TCHECK_1(cp); advance = sizeof(struct ip6_frag); nh = *cp; break;