From: Gokul Sivakumar Date: Sun, 27 Jun 2021 10:43:06 +0000 (+0530) Subject: Fix the misleading comment regarding "From DS", "To DS" Frame Control Flags X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/ff5484806e9e96dec7a6521d86f7f0b17a1fbb81 Fix the misleading comment regarding "From DS", "To DS" Frame Control Flags In the case where the "From DS" bit is not set and the "To DS" bit is set in the Frame Control Bitmask, the comment line in the corresponding if else block was misleading that the "From DS" bit is set and the "To DS" bit is not set. --- diff --git a/print-802_11.c b/print-802_11.c index fdd96f05..a3ce4273 100644 --- a/print-802_11.c +++ b/print-802_11.c @@ -1908,7 +1908,7 @@ get_data_src_dst_mac(uint16_t fc, const u_char *p, const uint8_t **srcp, } } else { if (!FC_FROM_DS(fc)) { - /* From DS and not To DS */ + /* To DS and not From DS */ *srcp = ADDR2; *dstp = ADDR3; } else {