X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/40ae3ad744d9f71079b410a810acbc33ef39f8ba..cc2d4cbd8ca150504127f375d8b51b194958d95b:/print-dvmrp.c diff --git a/print-dvmrp.c b/print-dvmrp.c index c4efd0a5..983b63b4 100644 --- a/print-dvmrp.c +++ b/print-dvmrp.c @@ -235,8 +235,7 @@ print_probe(netdissect_options *ndo, ND_PRINT(" [|}"); return (0); } - genid = (EXTRACT_U_1(bp) << 24) | (EXTRACT_U_1(bp + 1) << 16) | - (EXTRACT_U_1(bp + 2) << 8) | EXTRACT_U_1(bp + 3); + genid = EXTRACT_BE_U_4(bp); bp += 4; len -= 4; ND_PRINT(ndo->ndo_vflag > 1 ? "\n\t" : " ");