"Fossies" - the Fresh Open Source Software Archive
Member "daq-2.0.7/sfbpf/sunatmpos.h" (8 Apr 2020, 2257 Bytes) of package /linux/misc/daq-2.0.7.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard
) with prefixed line numbers and code folding
Alternatively you can here view
the uninterpreted source code file.
For more information about "sunatmpos.h" see the Fossies "Dox" file reference
documentation and the latest Fossies "Diffs"
side-by-side code changes report: 2.0.6_vs_2.0.7
2 * Copyright (c) 1997 Yen Yen Lim and North Dakota State University
3 * All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by Yen Yen Lim and
16 North Dakota State University
17 * 4. The name of the author may not be used to endorse or promote products
18 * derived from this software without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
24 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
32 * @(#) $Header: //depot/firepower/daq-opensource/DAQ_2_0_7/sfbpf/sunatmpos.h#1 $ (LBL)
35 /* SunATM header for ATM packet */
36 #define SUNATM_DIR_POS 0
37 #define SUNATM_VPI_POS 1
38 #define SUNATM_VCI_POS 2
39 #define SUNATM_PKT_BEGIN_POS 4 /* Start of ATM packet */
41 /* Protocol type values in the bottom for bits of the byte at SUNATM_DIR_POS. */
42 #define PT_LANE 0x01 /* LANE */
43 #define PT_LLC 0x02 /* LLC encapsulation */
44 #define PT_ILMI 0x05 /* ILMI */
45 #define PT_QSAAL 0x06 /* Q.SAAL */