]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-carp.c
More nd_ification of structures.
[tcpdump] / print-carp.c
index 622d308e9fb03eeb6a5e4f6fb4214f62ed9b41a4..b439a2d7a6fb4e92a45a59410162a946e5009354 100644 (file)
@@ -52,8 +52,8 @@ carp_print(netdissect_options *ndo, register const u_char *bp, register u_int le
        const char *type_s;
 
        ND_TCHECK_1(bp);
-       version = (bp[0] & 0xf0) >> 4;
-       type = bp[0] & 0x0f;
+       version = (EXTRACT_U_1(bp) & 0xf0) >> 4;
+       type = EXTRACT_U_1(bp) & 0x0f;
        if (type == 1)
                type_s = "advertise";
        else