1*8b26181fSAndroid Build Coastguard Worker /* 2*8b26181fSAndroid Build Coastguard Worker * Copyright (c) 1997 Yen Yen Lim and North Dakota State University 3*8b26181fSAndroid Build Coastguard Worker * All rights reserved. 4*8b26181fSAndroid Build Coastguard Worker * 5*8b26181fSAndroid Build Coastguard Worker * Redistribution and use in source and binary forms, with or without 6*8b26181fSAndroid Build Coastguard Worker * modification, are permitted provided that the following conditions 7*8b26181fSAndroid Build Coastguard Worker * are met: 8*8b26181fSAndroid Build Coastguard Worker * 1. Redistributions of source code must retain the above copyright 9*8b26181fSAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer. 10*8b26181fSAndroid Build Coastguard Worker * 2. Redistributions in binary form must reproduce the above copyright 11*8b26181fSAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer in the 12*8b26181fSAndroid Build Coastguard Worker * documentation and/or other materials provided with the distribution. 13*8b26181fSAndroid Build Coastguard Worker * 3. All advertising materials mentioning features or use of this software 14*8b26181fSAndroid Build Coastguard Worker * must display the following acknowledgement: 15*8b26181fSAndroid Build Coastguard Worker * This product includes software developed by Yen Yen Lim and 16*8b26181fSAndroid Build Coastguard Worker North Dakota State University 17*8b26181fSAndroid Build Coastguard Worker * 4. The name of the author may not be used to endorse or promote products 18*8b26181fSAndroid Build Coastguard Worker * derived from this software without specific prior written permission. 19*8b26181fSAndroid Build Coastguard Worker * 20*8b26181fSAndroid Build Coastguard Worker * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21*8b26181fSAndroid Build Coastguard Worker * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 22*8b26181fSAndroid Build Coastguard Worker * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23*8b26181fSAndroid Build Coastguard Worker * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 24*8b26181fSAndroid Build Coastguard Worker * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 25*8b26181fSAndroid Build Coastguard Worker * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26*8b26181fSAndroid Build Coastguard Worker * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27*8b26181fSAndroid Build Coastguard Worker * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 28*8b26181fSAndroid Build Coastguard Worker * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 29*8b26181fSAndroid Build Coastguard Worker * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30*8b26181fSAndroid Build Coastguard Worker * POSSIBILITY OF SUCH DAMAGE. 31*8b26181fSAndroid Build Coastguard Worker */ 32*8b26181fSAndroid Build Coastguard Worker 33*8b26181fSAndroid Build Coastguard Worker /* SunATM header for ATM packet */ 34*8b26181fSAndroid Build Coastguard Worker #define SUNATM_DIR_POS 0 35*8b26181fSAndroid Build Coastguard Worker #define SUNATM_VPI_POS 1 36*8b26181fSAndroid Build Coastguard Worker #define SUNATM_VCI_POS 2 37*8b26181fSAndroid Build Coastguard Worker #define SUNATM_PKT_BEGIN_POS 4 /* Start of ATM packet */ 38*8b26181fSAndroid Build Coastguard Worker 39*8b26181fSAndroid Build Coastguard Worker /* Protocol type values in the bottom for bits of the byte at SUNATM_DIR_POS. */ 40*8b26181fSAndroid Build Coastguard Worker #define PT_LANE 0x01 /* LANE */ 41*8b26181fSAndroid Build Coastguard Worker #define PT_LLC 0x02 /* LLC encapsulation */ 42*8b26181fSAndroid Build Coastguard Worker #define PT_ILMI 0x05 /* ILMI */ 43*8b26181fSAndroid Build Coastguard Worker #define PT_QSAAL 0x06 /* Q.SAAL */ 44