From 2ba5608a0b7873e0b21ef02f34e8220cfdf5d2fd Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 28 Sep 1999 01:19:01 +0000 Subject: [PATCH] "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 --- wiretap/snoop.c | 4 ++-- 1 file 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 @@ -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 */