aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-28 01:19:01 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-28 01:19:01 +0000
commit2ba5608a0b7873e0b21ef02f34e8220cfdf5d2fd (patch)
tree54dc20f6043d7db4eb33c0ac50bcd04e08b433cf /wiretap
parenta1f28feb1bdd0912215fcf79d331dff82f15640f (diff)
downloadwireshark-2ba5608a0b7873e0b21ef02f34e8220cfdf5d2fd.tar.gz
wireshark-2ba5608a0b7873e0b21ef02f34e8220cfdf5d2fd.tar.bz2
wireshark-2ba5608a0b7873e0b21ef02f34e8220cfdf5d2fd.zip
"snoop" seems to treat "IEEE 802.3" and "Ethernet" datalink types the
same (which raises the question "so why the heck are there two types?" - note that the way you're supposed to tell Ethernet from 802.3 packets is by looking at the value of the type/length field; both of them can be transmitted on the same wire), so we'll treat them the same. svn path=/trunk/; revision=733
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/snoop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/snoop.c b/wiretap/snoop.c
index 79b73bd9c0..187721a1f0 100644
--- a/wiretap/snoop.c
+++ b/wiretap/snoop.c
@@ -1,6 +1,6 @@
/* snoop.c
*
- * $Id: snoop.c,v 1.12 1999/09/24 05:49:52 guy Exp $
+ * $Id: snoop.c,v 1.13 1999/09/28 01:19:01 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -63,7 +63,7 @@ int snoop_open(wtap *wth, int *err)
char magic[sizeof snoop_magic];
struct snoop_hdr hdr;
static const int snoop_encap[] = {
- WTAP_ENCAP_UNKNOWN, /* IEEE 802.3 */
+ WTAP_ENCAP_ETHERNET, /* IEEE 802.3 */
WTAP_ENCAP_UNKNOWN, /* IEEE 802.4 Token Bus */
WTAP_ENCAP_TR,
WTAP_ENCAP_UNKNOWN, /* IEEE 802.6 Metro Net */