X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3c8f3e13b03380742c24070f8a7b56fe12c6b8ee..da20bc56d6100b5275d6f85c4a25bac1dab4e57e:/print-msdp.c diff --git a/print-msdp.c b/print-msdp.c index 19b7c5e6..6ac780b8 100644 --- a/print-msdp.c +++ b/print-msdp.c @@ -38,14 +38,14 @@ msdp_print(netdissect_options *ndo, const u_char *sp, u_int length) ND_TCHECK2(*sp, 3); /* See if we think we're at the beginning of a compound packet */ type = *sp; - len = EXTRACT_BE_16BITS(sp + 1); + len = EXTRACT_BE_U_2(sp + 1); if (len > 1500 || len < 3 || type == 0 || type > MSDP_TYPE_MAX) goto trunc; /* not really truncated, but still not decodable */ ND_PRINT((ndo, " msdp:")); while (length > 0) { ND_TCHECK2(*sp, 3); type = *sp; - len = EXTRACT_BE_16BITS(sp + 1); + len = EXTRACT_BE_U_2(sp + 1); if (len > 1400 || ndo->ndo_vflag) ND_PRINT((ndo, " [len %u]", len)); if (len < 3)