]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msdp.c
Rename EXTRACT_ macros
[tcpdump] / print-msdp.c
index 19b7c5e61d47655ca1d93b1dfdf82a05aa8333ab..6ac780b8350af3a588e3cb6dce042a5e75d35946 100644 (file)
@@ -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)