]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mpls.c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (11/n)
[tcpdump] / print-mpls.c
index ba4223346c8bd20e331a7c0a3a99eca3af615e16..c8fe904515a9d5c8de3b00419b98b5ee2864271e 100644 (file)
@@ -72,7 +72,7 @@ mpls_print(netdissect_options *ndo, const u_char *bp, u_int length)
                        ND_PRINT((ndo, "[|MPLS], length %u", length));
                        return;
                }
-               label_entry = EXTRACT_32BITS(p);
+               label_entry = EXTRACT_BE_32BITS(p);
                ND_PRINT((ndo, "%s(label %u",
                       (label_stack_depth && ndo->ndo_vflag) ? "\n\t" : " ",
                               MPLS_LABEL(label_entry)));
@@ -201,7 +201,7 @@ mpls_print(netdissect_options *ndo, const u_char *bp, u_int length)
                break;
 
        case PT_OSI:
-               isoclns_print(ndo, p, length, length);
+               isoclns_print(ndo, p, length);
                break;
 
        default: