]> The Tcpdump Group git mirrors - libpcap/commitdiff
dag: fix a comment.
authorGuy Harris <[email protected]>
Thu, 3 Mar 2022 23:36:17 +0000 (15:36 -0800)
committerGuy Harris <[email protected]>
Wed, 16 Mar 2022 02:41:33 +0000 (19:41 -0700)
The FCS length in the pcap file header is in units of 16-bit words, not
in units of bytes.

(cherry picked from commit 94079271fafe58a04e7e3a42eb1d7107df616947)

pcap-dag.c

index ff006150ee51bf5f441422170d6f1dcec5e0be97..108f029ac8f31139a80a1f0d337c16d31e0b8544 100644 (file)
@@ -950,7 +950,7 @@ static int dag_activate(pcap_t* p)
                 * Did the user request that they not be stripped?
                 */
                if ((s = getenv("ERF_DONT_STRIP_FCS")) != NULL) {
-                       /* Yes.  Note the number of bytes that will be
+                       /* Yes.  Note the number of 16-bit words that will be
                           supplied. */
                        p->linktype_ext = LT_FCS_DATALINK_EXT(pd->dag_fcs_bits/16);