BSD/OS Frame Relay packets just begin with the Frame Relay header, so
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 7 Jun 2002 04:48:36 +0000 (04:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 7 Jun 2002 04:48:36 +0000 (04:48 +0000)
they are, in fact, WTAP_ENCAP_FRELAY.  Support 11 as WTAP_ENCAP_FRELAY
if DLT_FR is defined and is equal to 11, and support 107 as
WTAP_ENCAP_FRELAY unconditionally.

Get rid of a comment indicating that 105 isn't used - it's been
supported as DLT_IEEE802_11 for a while.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5640 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/libpcap.c

index 001127d5d2e2ec86e634d4b5dbb9a8d345d099dc..7702c387b28a941bcf974afd8b560f34850165ef 100644 (file)
@@ -1,6 +1,6 @@
 /* libpcap.c
  *
- * $Id: libpcap.c,v 1.73 2002/06/06 18:58:12 guy Exp $
+ * $Id: libpcap.c,v 1.74 2002/06/07 04:48:36 guy Exp $
  *
  * Wiretap Library
  * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -141,7 +141,7 @@ static const struct {
         *         them correctly).
         */
 #if defined(DLT_FR) && (DLT_FR == 11)
-       /* Put entry for Frame Relay here */
+       { 11,           WTAP_ENCAP_FRELAY },
 #else
        { 11,           WTAP_ENCAP_ATM_RFC1483 },
 #endif
@@ -354,22 +354,9 @@ static const struct {
         * These ones are handled in Ethereal, though.
         */
        { 104,          WTAP_ENCAP_CHDLC },     /* Cisco HDLC */
+       { 105,          WTAP_ENCAP_IEEE_802_11 }, /* IEEE 802.11 */
        { 106,          WTAP_ENCAP_LINUX_ATM_CLIP },
-
-       /*
-        * Values not yet used by the current CVS version of libpcap,
-        * but reserved for future use; the IEEE 802.11 value is
-        * there for use with a capture program from Axis Communications.
-        */
-       { 105,          WTAP_ENCAP_IEEE_802_11 },
-#if 0
-       /*
-        * Not yet handled in Ethereal; we don't know what encapsulation
-        * BSD/OS uses, so we don't know whether it can be handed to
-        * the Frame Relay dissector or not.
-        */
-       { 107,          WTAP_ENCAP_FR },        /* Frame Relay */
-#endif
+       { 107,          WTAP_ENCAP_FRELAY },    /* Frame Relay */
        { 108,          WTAP_ENCAP_NULL },      /* OpenBSD loopback */
 #if 0
        { 109,          WTAP_ENCAP_ENC },       /* OpenBSD IPSEC enc */