forked from osmocom/wireshark
"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
This commit is contained in:
parent
a1f28feb1b
commit
2ba5608a0b
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue