xref: /illumos-gate/usr/src/uts/common/net/if_types.h (revision 7c478bd9)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * Copyright 1993-2003 Sun Microsystems, Inc.  All rights reserved.
3*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
4*7c478bd9Sstevel@tonic-gate  */
5*7c478bd9Sstevel@tonic-gate /*
6*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1989, 1993, 1994
7*7c478bd9Sstevel@tonic-gate  *	The Regents of the University of California.  All rights reserved.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * Redistribution and use in source and binary forms, with or without
10*7c478bd9Sstevel@tonic-gate  * modification, are permitted provided that the following conditions
11*7c478bd9Sstevel@tonic-gate  * are met:
12*7c478bd9Sstevel@tonic-gate  * 1. Redistributions of source code must retain the above copyright
13*7c478bd9Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer.
14*7c478bd9Sstevel@tonic-gate  * 2. Redistributions in binary form must reproduce the above copyright
15*7c478bd9Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer in the
16*7c478bd9Sstevel@tonic-gate  *    documentation and/or other materials provided with the distribution.
17*7c478bd9Sstevel@tonic-gate  * 3. All advertising materials mentioning features or use of this software
18*7c478bd9Sstevel@tonic-gate  *    must display the following acknowledgement:
19*7c478bd9Sstevel@tonic-gate  *	This product includes software developed by the University of
20*7c478bd9Sstevel@tonic-gate  *	California, Berkeley and its contributors.
21*7c478bd9Sstevel@tonic-gate  * 4. Neither the name of the University nor the names of its contributors
22*7c478bd9Sstevel@tonic-gate  *    may be used to endorse or promote products derived from this software
23*7c478bd9Sstevel@tonic-gate  *    without specific prior written permission.
24*7c478bd9Sstevel@tonic-gate  *
25*7c478bd9Sstevel@tonic-gate  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26*7c478bd9Sstevel@tonic-gate  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27*7c478bd9Sstevel@tonic-gate  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28*7c478bd9Sstevel@tonic-gate  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29*7c478bd9Sstevel@tonic-gate  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30*7c478bd9Sstevel@tonic-gate  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31*7c478bd9Sstevel@tonic-gate  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32*7c478bd9Sstevel@tonic-gate  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33*7c478bd9Sstevel@tonic-gate  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34*7c478bd9Sstevel@tonic-gate  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35*7c478bd9Sstevel@tonic-gate  * SUCH DAMAGE.
36*7c478bd9Sstevel@tonic-gate  */
37*7c478bd9Sstevel@tonic-gate 
38*7c478bd9Sstevel@tonic-gate #ifndef	_NET_IF_TYPES_H
39*7c478bd9Sstevel@tonic-gate #define	_NET_IF_TYPES_H
40*7c478bd9Sstevel@tonic-gate 
41*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
42*7c478bd9Sstevel@tonic-gate /* from UCB 8.3 (Berkeley) 4/28/95 */
43*7c478bd9Sstevel@tonic-gate 
44*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
45*7c478bd9Sstevel@tonic-gate extern "C" {
46*7c478bd9Sstevel@tonic-gate #endif
47*7c478bd9Sstevel@tonic-gate 
48*7c478bd9Sstevel@tonic-gate /*
49*7c478bd9Sstevel@tonic-gate  * Interface types for benefit of parsing media address headers.
50*7c478bd9Sstevel@tonic-gate  * This list is derived from the SNMP list of ifTypes, currently
51*7c478bd9Sstevel@tonic-gate  * documented in RFC1573.
52*7c478bd9Sstevel@tonic-gate  */
53*7c478bd9Sstevel@tonic-gate 
54*7c478bd9Sstevel@tonic-gate #define	IFT_OTHER	0x1		/* none of the following */
55*7c478bd9Sstevel@tonic-gate #define	IFT_1822	0x2		/* old-style arpanet imp */
56*7c478bd9Sstevel@tonic-gate #define	IFT_HDH1822	0x3		/* HDH arpanet imp */
57*7c478bd9Sstevel@tonic-gate #define	IFT_X25DDN	0x4		/* x25 to imp */
58*7c478bd9Sstevel@tonic-gate #define	IFT_X25		0x5		/* PDN X25 interface (RFC877) */
59*7c478bd9Sstevel@tonic-gate #define	IFT_ETHER	0x6		/* Ethernet CSMACD */
60*7c478bd9Sstevel@tonic-gate #define	IFT_ISO88023	0x7		/* CMSA CD */
61*7c478bd9Sstevel@tonic-gate #define	IFT_ISO88024	0x8		/* Token Bus */
62*7c478bd9Sstevel@tonic-gate #define	IFT_ISO88025	0x9		/* Token Ring */
63*7c478bd9Sstevel@tonic-gate #define	IFT_ISO88026	0xa		/* MAN */
64*7c478bd9Sstevel@tonic-gate #define	IFT_STARLAN	0xb
65*7c478bd9Sstevel@tonic-gate #define	IFT_P10		0xc		/* Proteon 10MBit ring */
66*7c478bd9Sstevel@tonic-gate #define	IFT_P80		0xd		/* Proteon 80MBit ring */
67*7c478bd9Sstevel@tonic-gate #define	IFT_HY		0xe		/* Hyperchannel */
68*7c478bd9Sstevel@tonic-gate #define	IFT_FDDI	0xf
69*7c478bd9Sstevel@tonic-gate #define	IFT_LAPB	0x10
70*7c478bd9Sstevel@tonic-gate #define	IFT_SDLC	0x11
71*7c478bd9Sstevel@tonic-gate #define	IFT_T1		0x12
72*7c478bd9Sstevel@tonic-gate #define	IFT_CEPT	0x13		/* E1 - european T1 */
73*7c478bd9Sstevel@tonic-gate #define	IFT_ISDNBASIC	0x14
74*7c478bd9Sstevel@tonic-gate #define	IFT_ISDNPRIMARY	0x15
75*7c478bd9Sstevel@tonic-gate #define	IFT_PTPSERIAL	0x16		/* Proprietary PTP serial */
76*7c478bd9Sstevel@tonic-gate #define	IFT_PPP		0x17		/* RFC 1331 */
77*7c478bd9Sstevel@tonic-gate #define	IFT_LOOP	0x18		/* loopback */
78*7c478bd9Sstevel@tonic-gate #define	IFT_EON		0x19		/* ISO over IP */
79*7c478bd9Sstevel@tonic-gate #define	IFT_XETHER	0x1a		/* obsolete 3MB experimental ethernet */
80*7c478bd9Sstevel@tonic-gate #define	IFT_NSIP	0x1b		/* XNS over IP */
81*7c478bd9Sstevel@tonic-gate #define	IFT_SLIP	0x1c		/* IP over generic TTY */
82*7c478bd9Sstevel@tonic-gate #define	IFT_ULTRA	0x1d		/* Ultra Technologies */
83*7c478bd9Sstevel@tonic-gate #define	IFT_DS3		0x1e		/* Generic T3 */
84*7c478bd9Sstevel@tonic-gate #define	IFT_SIP		0x1f		/* SMDS */
85*7c478bd9Sstevel@tonic-gate #define	IFT_FRELAY	0x20		/* Frame Relay DTE only */
86*7c478bd9Sstevel@tonic-gate #define	IFT_RS232	0x21
87*7c478bd9Sstevel@tonic-gate #define	IFT_PARA	0x22		/* parallel-port */
88*7c478bd9Sstevel@tonic-gate #define	IFT_ARCNET	0x23
89*7c478bd9Sstevel@tonic-gate #define	IFT_ARCNETPLUS	0x24
90*7c478bd9Sstevel@tonic-gate #define	IFT_ATM		0x25		/* ATM cells */
91*7c478bd9Sstevel@tonic-gate #define	IFT_MIOX25	0x26
92*7c478bd9Sstevel@tonic-gate #define	IFT_SONET	0x27		/* SONET or SDH */
93*7c478bd9Sstevel@tonic-gate #define	IFT_X25PLE	0x28
94*7c478bd9Sstevel@tonic-gate #define	IFT_ISO88022LLC	0x29
95*7c478bd9Sstevel@tonic-gate #define	IFT_LOCALTALK	0x2a
96*7c478bd9Sstevel@tonic-gate #define	IFT_SMDSDXI	0x2b
97*7c478bd9Sstevel@tonic-gate #define	IFT_FRELAYDCE	0x2c		/* Frame Relay DCE */
98*7c478bd9Sstevel@tonic-gate #define	IFT_V35		0x2d
99*7c478bd9Sstevel@tonic-gate #define	IFT_HSSI	0x2e
100*7c478bd9Sstevel@tonic-gate #define	IFT_HIPPI	0x2f
101*7c478bd9Sstevel@tonic-gate #define	IFT_MODEM	0x30		/* Generic Modem */
102*7c478bd9Sstevel@tonic-gate #define	IFT_AAL5	0x31		/* AAL5 over ATM */
103*7c478bd9Sstevel@tonic-gate #define	IFT_SONETPATH	0x32
104*7c478bd9Sstevel@tonic-gate #define	IFT_SONETVT	0x33
105*7c478bd9Sstevel@tonic-gate #define	IFT_SMDSICIP	0x34		/* SMDS InterCarrier Interface */
106*7c478bd9Sstevel@tonic-gate #define	IFT_PROPVIRTUAL	0x35		/* Proprietary Virtual/internal */
107*7c478bd9Sstevel@tonic-gate #define	IFT_PROPMUX	0x36		/* Proprietary Multiplexing */
108*7c478bd9Sstevel@tonic-gate #define	IFT_IB		0xc7		/* Infiniband */
109*7c478bd9Sstevel@tonic-gate 
110*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
111*7c478bd9Sstevel@tonic-gate }
112*7c478bd9Sstevel@tonic-gate #endif
113*7c478bd9Sstevel@tonic-gate 
114*7c478bd9Sstevel@tonic-gate #endif	/* _NET_IF_TYPES_H */
115