X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c027ae2601efb06315f23d78e836e0deddbc3e39..4166458a2a6c4b779bc238ee3d2e555cee1bc416:/print-ip.c diff --git a/print-ip.c b/print-ip.c index b7359d08..1caa93c4 100644 --- a/print-ip.c +++ b/print-ip.c @@ -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, "}"));