]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip.c
Use more the EXTRACT_U_1() macro (46/n)
[tcpdump] / print-ip.c
index b7359d087bccee6e3dec6f8cac85baa00be9d877..1caa93c4e26046d9ffd864cc8870627ffeba5771 100644 (file)
@@ -228,7 +228,7 @@ ip_printts(netdissect_options *ndo,
 done:
        ND_PRINT((ndo, "%s", ptr == len ? " ^ " : ""));
 
-       if (cp[3]>>4)
+       if (EXTRACT_U_1(cp + 3) >> 4)
                ND_PRINT((ndo, " [%d hops not recorded]} ", EXTRACT_U_1(cp + 3)>>4));
        else
                ND_PRINT((ndo, "}"));