]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-snmp.c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (16/n)
[tcpdump] / print-snmp.c
index dc6f1a6e7325cb0c7fac51b44f3ddc7122c18b5b..a729ea0a92f62964a26ed93b752040b09ab96541 100644 (file)
@@ -440,7 +440,7 @@ asn1_parse(netdissect_options *ndo,
         */
        id = EXTRACT_8BITS(p) & ASN_ID_BITS;            /* lower 5 bits, range 00-1f */
 #ifdef notdef
-       form = (*p & 0xe0) >> 5;        /* move upper 3 bits to lower 3 */
+       form = (EXTRACT_8BITS(p) & 0xe0) >> 5;  /* move upper 3 bits to lower 3 */
        class = form >> 1;              /* bits 7&6 -> bits 1&0, range 0-3 */
        form &= 0x1;                    /* bit 5 -> bit 0, range 0-1 */
 #else