diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-12-23 08:06:16 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-12-23 08:06:16 +0000 |
commit | dce133381d999b56ec2f7beed9b2866f17c97885 (patch) | |
tree | 38e10b3769821310c71b5ae2ffd72a572a98a782 /wiretap/libpcap.c | |
parent | 4f19abbb673c301bd1cf4af45f60e34a161d9e5e (diff) |
Add support for the DLT_LINUX_SLL capture type in the current CVS
version of libpcap; that's used on Linux for captures on the "any"
device (which captures from all interfaces simultaneously) and for
captures on devices whose link-layer type libpcap doesn't (yet) support
natively.
The spanning tree code, when checking for GV{M,R,...}P packets, must
first check whether the link-layer destination address is, in fact, an
Ethernet-style address; on Linux cooked captures, there *is* no
destination address, so it's of type AT_NONE, not AT_ETHER.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2772 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r-- | wiretap/libpcap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index 3eac15b74a..52b65bed73 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -1,6 +1,6 @@ /* libpcap.c * - * $Id: libpcap.c,v 1.44 2000/11/15 05:41:47 guy Exp $ + * $Id: libpcap.c,v 1.45 2000/12/23 08:06:15 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -338,6 +338,12 @@ static const struct { { 111, WTAP_ENCAP_HIPPI }, /* NetBSD HIPPI */ { 112, WTAP_ENCAP_HDLC }, /* NetBSD HDLC framing */ #endif + + /* + * Linux "cooked mode" captures, used by the current CVS version + * of libpcap. + */ + { 113, WTAP_ENCAP_SLL }, /* Linux cooked capture */ }; #define NUM_PCAP_ENCAPS (sizeof pcap_to_wtap_map / sizeof pcap_to_wtap_map[0]) |