]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix the misleading comment regarding "From DS", "To DS" Frame Control Flags
authorGokul Sivakumar <[email protected]>
Sun, 27 Jun 2021 10:43:06 +0000 (16:13 +0530)
committerfxlb <[email protected]>
Sun, 27 Jun 2021 19:00:00 +0000 (19:00 +0000)
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.

print-802_11.c

index fdd96f051f4bdab235e142d931d0899d3a11308d..a3ce42734ca3c3127d00971476d644a2e4341254 100644 (file)
@@ -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 {