]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sl.c
Use more the EXTRACT_U_1() macro (46/n)
[tcpdump] / print-sl.c
index a0be325064f55ef19d9630476a056ef1d5c28f54..7d2068ff7db55099cd2aaf1405e52d13f4600957 100644 (file)
@@ -183,7 +183,7 @@ sliplink_print(netdissect_options *ndo,
                        /* Direction is bogus, don't use it */
                        return;
                }
-               if (p[SLX_CHDR] & TYPE_COMPRESSED_TCP) {
+               if (EXTRACT_U_1(p + SLX_CHDR) & TYPE_COMPRESSED_TCP) {
                        compressed_sl_print(ndo, p + SLX_CHDR, ip,
                                            length, dir);
                        ND_PRINT((ndo, ": "));