]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-l2tp.c
Use more the EXTRACT_U_1() macro (40/n)
[tcpdump] / print-l2tp.c
index 7feab704046931a07fb2870d0b1ca3a8164ebbda..6cf0c0adfb1104c17b0d51b69071008913984bfd 100644 (file)
@@ -396,7 +396,7 @@ l2tp_q931_cc_print(netdissect_options *ndo, const u_char *dat, u_int length)
                return;
        }
        print_16bits_val(ndo, (const uint16_t *)dat);
-       ND_PRINT((ndo, ", %02x", dat[2]));
+       ND_PRINT((ndo, ", %02x", EXTRACT_U_1(dat + 2)));
        dat += 3;
        length -= 3;
        if (length != 0) {