From 2bf78ceca9b89b6176c3860e82f1e7d0d328b83d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 29 Jul 2013 08:37:18 +0000 Subject: 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 --- text2pcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text2pcap.c') 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 -- cgit v1.2.3