]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-medsa.c
Rename EXTRACT_ macros
[tcpdump] / print-medsa.c
index c1e953b9a226896daff73a7de082ed1517a6da58..95e608f0d0c3c7c15a2340ba5c9eb1be77a6c780 100644 (file)
@@ -157,7 +157,7 @@ medsa_print(netdissect_options *ndo,
        length -= 8;
        caplen -= 8;
 
-       ether_type = EXTRACT_BE_16BITS(&medsa->ether_type);
+       ether_type = EXTRACT_BE_U_2(&medsa->ether_type);
        if (ether_type <= ETHERMTU) {
                /* Try to print the LLC-layer header & higher layers */
                if (llc_print(ndo, bp, length, caplen, src, dst) < 0) {