]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip6.c
Use more the EXTRACT_U_1() macro (40/n)
[tcpdump] / print-ip6.c
index e13b365a380b39de004381288c24f1a683fcb708..237c36d49ce6d4471d6107b3d762b5199d3eae7e 100644 (file)
@@ -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;