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