path: root/text2pcap.c
diff options
authorGuy Harris <guy@alum.mit.edu>2013-07-29 08:37:18 +0000
committerGuy Harris <guy@alum.mit.edu>2013-07-29 08:37:18 +0000
commit2bf78ceca9b89b6176c3860e82f1e7d0d328b83d (patch)
treea244f9e5cf0789dd939d7974c4e47b9b246f0405 /text2pcap.c
parent7c3e7c9506ba77322bc524ac6b93909695e4f88e (diff)
In the comments for pcap_link_type, point to
http://www.tcpdump.org/linktypes.html for the details, rather than to some particular OS's net/bpf.h (assuming it even has one), and speak of it as a LINKTYPE_ value rather than a DLT_ value (in those cases where the LINKTYPE_ value for a given link-layer header type is different from the DLT_ value, it's the LINKTYPE_ value that should be passed to text2pcap, as it's what gets written to the file, and those should be the always-platform-independent LINKTYPE_ values rather than the possibly-platform-dependent DLT_ values). svn path=/trunk/; revision=51008
Diffstat (limited to 'text2pcap.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c
index 85044ec431..c8fe7a03f8 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -437,8 +437,8 @@ struct pcaprec_hdr {
guint32 orig_len; /* actual length of packet */
-/* Link-layer type; see net/bpf.h for details */
-static guint32 pcap_link_type = 1; /* Default is DLT-EN10MB */
+/* Link-layer type; see http://www.tcpdump.org/linktypes.html for details */
+static guint32 pcap_link_type = 1; /* Default is LINKTYPE_ETHERNET */
* Parse a single hex number