]> 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)
committerGuy Harris <[email protected]>
Mon, 10 Oct 2022 07:23:11 +0000 (00:23 -0700)
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.

(cherry picked from commit ff5484806e9e96dec7a6521d86f7f0b17a1fbb81)

print-802_11.c

index 86594d48cda7a34c8bac460d43efec00dae42773..dc8953a9ee5bf3836215876b6742a6ef37e4cb02 100644 (file)
@@ -1913,7 +1913,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 {