Rev 4075 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4075 | Rev 4558 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * Copyright (c) 2009 Lukas Mejdrech |
2 | * Copyright (c) 2009 Lukas Mejdrech |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
8 | * |
8 | * |
9 | * - Redistributions of source code must retain the above copyright |
9 | * - Redistributions of source code must retain the above copyright |
10 | * notice, this list of conditions and the following disclaimer. |
10 | * notice, this list of conditions and the following disclaimer. |
11 | * - Redistributions in binary form must reproduce the above copyright |
11 | * - Redistributions in binary form must reproduce the above copyright |
12 | * notice, this list of conditions and the following disclaimer in the |
12 | * notice, this list of conditions and the following disclaimer in the |
13 | * documentation and/or other materials provided with the distribution. |
13 | * documentation and/or other materials provided with the distribution. |
14 | * - The name of the author may not be used to endorse or promote products |
14 | * - The name of the author may not be used to endorse or promote products |
15 | * derived from this software without specific prior written permission. |
15 | * derived from this software without specific prior written permission. |
16 | * |
16 | * |
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup eth |
29 | /** @addtogroup eth |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
34 | * Link service access point identifiers. |
34 | * Link service access point identifiers. |
35 | */ |
35 | */ |
36 | 36 | ||
37 | #ifndef __NET_ETHERNET_LSAP_H__ |
37 | #ifndef __NET_ETHERNET_LSAP_H__ |
38 | #define __NET_ETHERNET_LSAP_H__ |
38 | #define __NET_ETHERNET_LSAP_H__ |
39 | 39 | ||
- | 40 | #include <sys/types.h> |
|
- | 41 | ||
- | 42 | typedef uint8_t eth_lsap_t; |
|
- | 43 | ||
40 | /** Null LSAP LSAP identifier. |
44 | /** Null LSAP LSAP identifier. |
41 | */ |
45 | */ |
42 | #define ETH_LSAP_NULL 0x00 |
46 | #define ETH_LSAP_NULL 0x00 |
43 | /** Individual LLC Sublayer Management Function LSAP identifier. |
47 | /** Individual LLC Sublayer Management Function LSAP identifier. |
44 | */ |
48 | */ |
45 | #define ETH_LSAP_ISLMF 0x02 |
49 | #define ETH_LSAP_ISLMF 0x02 |
46 | /** Group LLC Sublayer Management Function LSAP identifier. |
50 | /** Group LLC Sublayer Management Function LSAP identifier. |
47 | */ |
51 | */ |
48 | #define ETH_LSAP_GSLMI 0x03 |
52 | #define ETH_LSAP_GSLMI 0x03 |
49 | /** IBM SNA Path Control (individual) LSAP identifier. |
53 | /** IBM SNA Path Control (individual) LSAP identifier. |
50 | */ |
54 | */ |
51 | #define ETH_LSAP_ISNA 0x04 |
55 | #define ETH_LSAP_ISNA 0x04 |
52 | /** IBM SNA Path Control (group) LSAP identifier. |
56 | /** IBM SNA Path Control (group) LSAP identifier. |
53 | */ |
57 | */ |
54 | #define ETH_LSAP_GSNA 0x05 |
58 | #define ETH_LSAP_GSNA 0x05 |
55 | /** ARPANET Internet Protocol (IP) LSAP identifier. |
59 | /** ARPANET Internet Protocol (IP) LSAP identifier. |
56 | */ |
60 | */ |
57 | #define ETH_LSAP_IP 0x06 |
61 | #define ETH_LSAP_IP 0x06 |
58 | /** SNA LSAP identifier. |
62 | /** SNA LSAP identifier. |
59 | */ |
63 | */ |
60 | #define ETH_LSAP_SNA 0x08 |
64 | #define ETH_LSAP_SNA 0x08 |
61 | /** SNA LSAP identifier. |
65 | /** SNA LSAP identifier. |
62 | */ |
66 | */ |
63 | #define ETH_LSAP_SNA2 0x0C |
67 | #define ETH_LSAP_SNA2 0x0C |
64 | /** PROWAY (IEC955) Network Management & Initialization LSAP identifier. |
68 | /** PROWAY (IEC955) Network Management & Initialization LSAP identifier. |
65 | */ |
69 | */ |
66 | #define ETH_LSAP_PROWAY_NMI 0x0E |
70 | #define ETH_LSAP_PROWAY_NMI 0x0E |
67 | /** Texas Instruments LSAP identifier. |
71 | /** Texas Instruments LSAP identifier. |
68 | */ |
72 | */ |
69 | #define ETH_LSAP_TI 0x18 |
73 | #define ETH_LSAP_TI 0x18 |
70 | /** IEEE 802.1 Bridge Spanning Tree Protocol LSAP identifier. |
74 | /** IEEE 802.1 Bridge Spanning Tree Protocol LSAP identifier. |
71 | */ |
75 | */ |
72 | #define ETH_LSAP_BRIDGE 0x42 |
76 | #define ETH_LSAP_BRIDGE 0x42 |
73 | /** EIA RS-511 Manufacturing Message Service LSAP identifier. |
77 | /** EIA RS-511 Manufacturing Message Service LSAP identifier. |
74 | */ |
78 | */ |
75 | #define ETH_LSAP_EIS 0x4E |
79 | #define ETH_LSAP_EIS 0x4E |
76 | /** ISO 8208 (X.25 over IEEE 802.2 Type 2 LLC) LSAP identifier. |
80 | /** ISO 8208 (X.25 over IEEE 802.2 Type 2 LLC) LSAP identifier. |
77 | */ |
81 | */ |
78 | #define ETH_LSAP_ISO8208 0x7E |
82 | #define ETH_LSAP_ISO8208 0x7E |
79 | /** Xerox Network Systems (XNS) LSAP identifier. |
83 | /** Xerox Network Systems (XNS) LSAP identifier. |
80 | */ |
84 | */ |
81 | #define ETH_LSAP_XNS 0x80 |
85 | #define ETH_LSAP_XNS 0x80 |
82 | /** Nestar LSAP identifier. |
86 | /** Nestar LSAP identifier. |
83 | */ |
87 | */ |
84 | #define ETH_LSAP_NESTAR 0x86 |
88 | #define ETH_LSAP_NESTAR 0x86 |
85 | /** PROWAY (IEC 955) Active Station List Maintenance LSAP identifier. |
89 | /** PROWAY (IEC 955) Active Station List Maintenance LSAP identifier. |
86 | */ |
90 | */ |
87 | #define ETH_LSAP_PROWAY_ASLM 0x8E |
91 | #define ETH_LSAP_PROWAY_ASLM 0x8E |
88 | /** ARPANET Address Resolution Protocol (ARP) LSAP identifier. |
92 | /** ARPANET Address Resolution Protocol (ARP) LSAP identifier. |
89 | */ |
93 | */ |
90 | #define ETH_LSAP_ARP 0x98 |
94 | #define ETH_LSAP_ARP 0x98 |
91 | /** Banyan VINES LSAP identifier. |
95 | /** Banyan VINES LSAP identifier. |
92 | */ |
96 | */ |
93 | #define ETH_LSAP_VINES 0xBC |
97 | #define ETH_LSAP_VINES 0xBC |
94 | /** SubNetwork Access Protocol (SNAP) LSAP identifier. |
98 | /** SubNetwork Access Protocol (SNAP) LSAP identifier. |
95 | */ |
99 | */ |
96 | #define ETH_LSAP_SNAP 0xAA |
100 | #define ETH_LSAP_SNAP 0xAA |
97 | /** Novell NetWare LSAP identifier. |
101 | /** Novell NetWare LSAP identifier. |
98 | */ |
102 | */ |
99 | #define ETH_LSAP_NETWARE 0xE0 |
103 | #define ETH_LSAP_NETWARE 0xE0 |
100 | /** IBM NetBIOS LSAP identifier. |
104 | /** IBM NetBIOS LSAP identifier. |
101 | */ |
105 | */ |
102 | #define ETH_LSAP_NETBIOS 0xF0 |
106 | #define ETH_LSAP_NETBIOS 0xF0 |
103 | /** IBM LAN Management (individual) LSAP identifier. |
107 | /** IBM LAN Management (individual) LSAP identifier. |
104 | */ |
108 | */ |
105 | #define ETH_LSAP_ILAN 0xF4 |
109 | #define ETH_LSAP_ILAN 0xF4 |
106 | /** IBM LAN Management (group) LSAP identifier. |
110 | /** IBM LAN Management (group) LSAP identifier. |
107 | */ |
111 | */ |
108 | #define ETH_LSAP_GLAN 0xF5 |
112 | #define ETH_LSAP_GLAN 0xF5 |
109 | /** IBM Remote Program Load (RPL) LSAP identifier. |
113 | /** IBM Remote Program Load (RPL) LSAP identifier. |
110 | */ |
114 | */ |
111 | #define ETH_LSAP_RPL 0xF8 |
115 | #define ETH_LSAP_RPL 0xF8 |
112 | /** Ungermann-Bass LSAP identifier. |
116 | /** Ungermann-Bass LSAP identifier. |
113 | */ |
117 | */ |
114 | #define ETH_LSAP_UB 0xFA |
118 | #define ETH_LSAP_UB 0xFA |
115 | /** ISO Network Layer Protocol LSAP identifier. |
119 | /** ISO Network Layer Protocol LSAP identifier. |
116 | */ |
120 | */ |
117 | #define ETH_LSAP_ISONLP 0xFE |
121 | #define ETH_LSAP_ISONLP 0xFE |
118 | /** Global LSAP LSAP identifier. |
122 | /** Global LSAP LSAP identifier. |
119 | */ |
123 | */ |
120 | #define ETH_LSAP_GLSAP 0xFF |
124 | #define ETH_LSAP_GLSAP 0xFF |
121 | 125 | ||
122 | #endif |
126 | #endif |
123 | 127 | ||
124 | /** @} |
128 | /** @} |
125 | */ |
129 | */ |
126 | 130 |