]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (11/n)
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 19 Nov 2017 20:30:41 +0000 (21:30 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 19 Nov 2017 20:44:52 +0000 (21:44 +0100)
In tok2str() calls (step 3).

print-mpcp.c

index 18c7f77df90b6c41bd8c9d95bf8d2a65e38bcf07..7d7a975531bcaa1766d87437dd1b22797d0d4981 100644 (file)
@@ -164,7 +164,7 @@ mpcp_print(netdissect_options *ndo, register const u_char *pptr, register u_int
                grant_numbers,
                bittok2str(mpcp_grant_flag_values,
                           "?",
                grant_numbers,
                bittok2str(mpcp_grant_flag_values,
                           "?",
-                          *tptr &~ MPCP_GRANT_NUMBER_MASK)));
+                          EXTRACT_8BITS(tptr) & ~MPCP_GRANT_NUMBER_MASK)));
         tptr++;
 
         for (grant = 1; grant <= grant_numbers; grant++) {
         tptr++;
 
         for (grant = 1; grant <= grant_numbers; grant++) {