]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (9/n)
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 19 Nov 2017 17:44:43 +0000 (18:44 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 19 Nov 2017 17:44:43 +0000 (18:44 +0100)
In bittok2str() calls (step 2).

print-ppp.c

index 0838fd3b5f1b270f9e977c1f214b9def3fc751e5..ba0fdc73263dcf3427b6890c4591c3b360464c93 100644 (file)
@@ -822,7 +822,7 @@ handle_mlppp(netdissect_options *ndo,
 
     ND_PRINT((ndo, "seq 0x%03x, Flags [%s], length %u",
            (EXTRACT_BE_16BITS(p))&0x0fff, /* only support 12-Bit sequence space for now */
-           bittok2str(ppp_ml_flag_values, "none", *p & 0xc0),
+           bittok2str(ppp_ml_flag_values, "none", EXTRACT_8BITS(p) & 0xc0),
            length));
 }