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