tcpdump mailing list archives

Re: New APIs to support multiple DLT_'s on an interface


From: Guy Harris <guy () netapp com>
Date: Wed, 18 Dec 2002 15:26:12 -0800

On Thu, Dec 19, 2002 at 10:15:00AM +1100, Darren Reed wrote:
DL_BIND_REQ

I believe the SAP is equivalent to the DLT type for DLPI.

Nope.

The SAP is a "link-layer type" in the sense of a value for the type
field in the link-layer header (or perhaps in the 802.2 LLC header as
well, as suggested by the name "SAP"), such as an Ethernet packet type,
not a "link-layer type" in the sense of a type of link layer (e.g., a
DL_ value in DLPI).

The equivalent to the DLT type for DLPI is a media type value from
"dlpi.h":

/*
 * DLPI media types supported
 */
#define DL_CSMACD   0x0  /* IEEE 802.3 CSMA/CD network, LLI Compatibility */
#define DL_TPB      0x1  /* IEEE 802.4 Token Passing Bus, LLI Compatibility */
#define DL_TPR      0x2  /* IEEE 802.5 Token Passing Ring, LLI Compatibility */
#define DL_METRO    0x3  /* IEEE 802.6 Metro Net, LLI Compatibility */
#define DL_ETHER    0x4  /* Ethernet Bus, LLI Compatibility */
#define DL_HDLC     0x05 /* ISO HDLC protocol support, bit synchronous */
#define DL_CHAR     0x06 /* Character Synchronous protocol support, eg BISYNC*/
#define DL_CTCA     0x07 /* IBM Channel-to-Channel Adapter */
#define DL_FDDI     0x08 /* Fiber Distributed data interface */
#define DL_FC       0x10 /* Fibre Channel interface */
#define DL_ATM      0x11 /* ATM */
#define DL_IPATM    0x12 /* ATM Classical IP interface */
#define DL_X25      0x13 /* X.25 LAPB interface */
#define DL_ISDN     0x14 /* ISDN interface */
#define DL_HIPPI    0x15 /* HIPPI interface */
#define DL_100VG    0x16 /* 100 Based VG Ethernet */
#define DL_100VGTPR 0x17 /* 100 Based VG Token Ring */
#define DL_ETH_CSMA 0x18 /* ISO 8802/3 and Ethernet */
#define DL_100BT    0x19 /* 100 Base T */
#define DL_FRAME    0x0a /* Frame Relay LAPF */
#define DL_MPFRAME  0x0b /* Multi-protocol over Frame Relay */
#define DL_ASYNC    0x0c /* Character Asynchronous Protocol */
#define DL_IPX25    0x0d /* X.25 Classical IP interface */
#define DL_LOOP     0x0e /* software loopback */
#define DL_OTHER    0x09 /* Any other medium not listed above */

which can be fetched, along with other information, with DL_INFO_REQ,
but which can't, as far as I know, be set (I don't think DLPI has any
notion of an interface that can supply link-layer data in more than one
media-type format).
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: