17c478bd9Sstevel@tonic-gate /* 2*2b24ab6bSSebastien Roy * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate * Use is subject to license terms. 47c478bd9Sstevel@tonic-gate */ 57c478bd9Sstevel@tonic-gate /* 67c478bd9Sstevel@tonic-gate * Copyright (c) 1989, 1993, 1994 77c478bd9Sstevel@tonic-gate * The Regents of the University of California. All rights reserved. 87c478bd9Sstevel@tonic-gate * 97c478bd9Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without 107c478bd9Sstevel@tonic-gate * modification, are permitted provided that the following conditions 117c478bd9Sstevel@tonic-gate * are met: 127c478bd9Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright 137c478bd9Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer. 147c478bd9Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright 157c478bd9Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer in the 167c478bd9Sstevel@tonic-gate * documentation and/or other materials provided with the distribution. 177c478bd9Sstevel@tonic-gate * 3. All advertising materials mentioning features or use of this software 187c478bd9Sstevel@tonic-gate * must display the following acknowledgement: 197c478bd9Sstevel@tonic-gate * This product includes software developed by the University of 207c478bd9Sstevel@tonic-gate * California, Berkeley and its contributors. 217c478bd9Sstevel@tonic-gate * 4. Neither the name of the University nor the names of its contributors 227c478bd9Sstevel@tonic-gate * may be used to endorse or promote products derived from this software 237c478bd9Sstevel@tonic-gate * without specific prior written permission. 247c478bd9Sstevel@tonic-gate * 257c478bd9Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 267c478bd9Sstevel@tonic-gate * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 277c478bd9Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 287c478bd9Sstevel@tonic-gate * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 297c478bd9Sstevel@tonic-gate * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 307c478bd9Sstevel@tonic-gate * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 317c478bd9Sstevel@tonic-gate * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 327c478bd9Sstevel@tonic-gate * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 337c478bd9Sstevel@tonic-gate * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 347c478bd9Sstevel@tonic-gate * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 357c478bd9Sstevel@tonic-gate * SUCH DAMAGE. 367c478bd9Sstevel@tonic-gate */ 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate #ifndef _NET_IF_TYPES_H 397c478bd9Sstevel@tonic-gate #define _NET_IF_TYPES_H 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate /* from UCB 8.3 (Berkeley) 4/28/95 */ 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gate #ifdef __cplusplus 447c478bd9Sstevel@tonic-gate extern "C" { 457c478bd9Sstevel@tonic-gate #endif 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate /* 487c478bd9Sstevel@tonic-gate * Interface types for benefit of parsing media address headers. 497c478bd9Sstevel@tonic-gate * This list is derived from the SNMP list of ifTypes, currently 507c478bd9Sstevel@tonic-gate * documented in RFC1573. 517c478bd9Sstevel@tonic-gate */ 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate #define IFT_OTHER 0x1 /* none of the following */ 547c478bd9Sstevel@tonic-gate #define IFT_1822 0x2 /* old-style arpanet imp */ 557c478bd9Sstevel@tonic-gate #define IFT_HDH1822 0x3 /* HDH arpanet imp */ 567c478bd9Sstevel@tonic-gate #define IFT_X25DDN 0x4 /* x25 to imp */ 577c478bd9Sstevel@tonic-gate #define IFT_X25 0x5 /* PDN X25 interface (RFC877) */ 587c478bd9Sstevel@tonic-gate #define IFT_ETHER 0x6 /* Ethernet CSMACD */ 597c478bd9Sstevel@tonic-gate #define IFT_ISO88023 0x7 /* CMSA CD */ 607c478bd9Sstevel@tonic-gate #define IFT_ISO88024 0x8 /* Token Bus */ 617c478bd9Sstevel@tonic-gate #define IFT_ISO88025 0x9 /* Token Ring */ 627c478bd9Sstevel@tonic-gate #define IFT_ISO88026 0xa /* MAN */ 637c478bd9Sstevel@tonic-gate #define IFT_STARLAN 0xb 647c478bd9Sstevel@tonic-gate #define IFT_P10 0xc /* Proteon 10MBit ring */ 657c478bd9Sstevel@tonic-gate #define IFT_P80 0xd /* Proteon 80MBit ring */ 667c478bd9Sstevel@tonic-gate #define IFT_HY 0xe /* Hyperchannel */ 677c478bd9Sstevel@tonic-gate #define IFT_FDDI 0xf 687c478bd9Sstevel@tonic-gate #define IFT_LAPB 0x10 697c478bd9Sstevel@tonic-gate #define IFT_SDLC 0x11 707c478bd9Sstevel@tonic-gate #define IFT_T1 0x12 717c478bd9Sstevel@tonic-gate #define IFT_CEPT 0x13 /* E1 - european T1 */ 727c478bd9Sstevel@tonic-gate #define IFT_ISDNBASIC 0x14 737c478bd9Sstevel@tonic-gate #define IFT_ISDNPRIMARY 0x15 747c478bd9Sstevel@tonic-gate #define IFT_PTPSERIAL 0x16 /* Proprietary PTP serial */ 757c478bd9Sstevel@tonic-gate #define IFT_PPP 0x17 /* RFC 1331 */ 767c478bd9Sstevel@tonic-gate #define IFT_LOOP 0x18 /* loopback */ 777c478bd9Sstevel@tonic-gate #define IFT_EON 0x19 /* ISO over IP */ 787c478bd9Sstevel@tonic-gate #define IFT_XETHER 0x1a /* obsolete 3MB experimental ethernet */ 797c478bd9Sstevel@tonic-gate #define IFT_NSIP 0x1b /* XNS over IP */ 807c478bd9Sstevel@tonic-gate #define IFT_SLIP 0x1c /* IP over generic TTY */ 817c478bd9Sstevel@tonic-gate #define IFT_ULTRA 0x1d /* Ultra Technologies */ 827c478bd9Sstevel@tonic-gate #define IFT_DS3 0x1e /* Generic T3 */ 837c478bd9Sstevel@tonic-gate #define IFT_SIP 0x1f /* SMDS */ 847c478bd9Sstevel@tonic-gate #define IFT_FRELAY 0x20 /* Frame Relay DTE only */ 857c478bd9Sstevel@tonic-gate #define IFT_RS232 0x21 867c478bd9Sstevel@tonic-gate #define IFT_PARA 0x22 /* parallel-port */ 877c478bd9Sstevel@tonic-gate #define IFT_ARCNET 0x23 887c478bd9Sstevel@tonic-gate #define IFT_ARCNETPLUS 0x24 897c478bd9Sstevel@tonic-gate #define IFT_ATM 0x25 /* ATM cells */ 907c478bd9Sstevel@tonic-gate #define IFT_MIOX25 0x26 917c478bd9Sstevel@tonic-gate #define IFT_SONET 0x27 /* SONET or SDH */ 927c478bd9Sstevel@tonic-gate #define IFT_X25PLE 0x28 937c478bd9Sstevel@tonic-gate #define IFT_ISO88022LLC 0x29 947c478bd9Sstevel@tonic-gate #define IFT_LOCALTALK 0x2a 957c478bd9Sstevel@tonic-gate #define IFT_SMDSDXI 0x2b 967c478bd9Sstevel@tonic-gate #define IFT_FRELAYDCE 0x2c /* Frame Relay DCE */ 977c478bd9Sstevel@tonic-gate #define IFT_V35 0x2d 987c478bd9Sstevel@tonic-gate #define IFT_HSSI 0x2e 997c478bd9Sstevel@tonic-gate #define IFT_HIPPI 0x2f 1007c478bd9Sstevel@tonic-gate #define IFT_MODEM 0x30 /* Generic Modem */ 1017c478bd9Sstevel@tonic-gate #define IFT_AAL5 0x31 /* AAL5 over ATM */ 1027c478bd9Sstevel@tonic-gate #define IFT_SONETPATH 0x32 1037c478bd9Sstevel@tonic-gate #define IFT_SONETVT 0x33 1047c478bd9Sstevel@tonic-gate #define IFT_SMDSICIP 0x34 /* SMDS InterCarrier Interface */ 1057c478bd9Sstevel@tonic-gate #define IFT_PROPVIRTUAL 0x35 /* Proprietary Virtual/internal */ 1067c478bd9Sstevel@tonic-gate #define IFT_PROPMUX 0x36 /* Proprietary Multiplexing */ 1077c478bd9Sstevel@tonic-gate #define IFT_IB 0xc7 /* Infiniband */ 108*2b24ab6bSSebastien Roy #define IFT_IPV4 0xc8 /* IPv4 tunnel */ 109*2b24ab6bSSebastien Roy #define IFT_IPV6 0xc9 /* IPV6 tunnel */ 110*2b24ab6bSSebastien Roy #define IFT_6TO4 0xca /* 6to4 tunnel */ 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate #ifdef __cplusplus 1137c478bd9Sstevel@tonic-gate } 1147c478bd9Sstevel@tonic-gate #endif 1157c478bd9Sstevel@tonic-gate 1167c478bd9Sstevel@tonic-gate #endif /* _NET_IF_TYPES_H */ 117