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