]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-bootp.c
Try marking structures as UNALIGNED.
[tcpdump] / print-bootp.c
index ce2ecac4f4228c8d59bc1fb320d0a4011944bf51..51e53844c1ff66a1f36e62f08bd58a4b6ee7f25d 100644 (file)
@@ -322,6 +322,7 @@ bootp_print(netdissect_options *ndo,
        if (EXTRACT_16BITS(&bp->bp_secs))
                ND_PRINT((ndo, ", secs %d", EXTRACT_16BITS(&bp->bp_secs)));
 
+       ND_TCHECK(bp->bp_flags);
        ND_PRINT((ndo, ", Flags [%s]",
                  bittok2str(bootp_flag_values, "none", EXTRACT_16BITS(&bp->bp_flags))));
        if (ndo->ndo_vflag > 1)