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