Subversion Repositories HelenOS

Rev

Rev 4558 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4558 Rev 4704
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>
40
#include <sys/types.h>
41
 
41
 
-
 
42
/** Ethernet LSAP type definition.
-
 
43
 */
42
typedef uint8_t eth_lsap_t;
44
typedef uint8_t eth_lsap_t;
43
 
45
 
-
 
46
/** @name Ethernet LSAP values definitions
-
 
47
 */
-
 
48
/*@{*/
-
 
49
 
44
/** Null LSAP LSAP identifier.
50
/** Null LSAP LSAP identifier.
45
 */
51
 */
46
#define ETH_LSAP_NULL   0x00
52
#define ETH_LSAP_NULL   0x00
47
/** Individual LLC Sublayer Management Function LSAP identifier.
53
/** Individual LLC Sublayer Management Function LSAP identifier.
48
 */
54
 */
49
#define ETH_LSAP_ISLMF  0x02
55
#define ETH_LSAP_ISLMF  0x02
50
/** Group LLC Sublayer Management Function LSAP identifier.
56
/** Group LLC Sublayer Management Function LSAP identifier.
51
 */
57
 */
52
#define ETH_LSAP_GSLMI  0x03
58
#define ETH_LSAP_GSLMI  0x03
53
/** IBM SNA Path Control (individual) LSAP identifier.
59
/** IBM SNA Path Control (individual) LSAP identifier.
54
 */
60
 */
55
#define ETH_LSAP_ISNA   0x04
61
#define ETH_LSAP_ISNA   0x04
56
/** IBM SNA Path Control (group) LSAP identifier.
62
/** IBM SNA Path Control (group) LSAP identifier.
57
 */
63
 */
58
#define ETH_LSAP_GSNA   0x05
64
#define ETH_LSAP_GSNA   0x05
59
/** ARPANET Internet Protocol (IP) LSAP identifier.
65
/** ARPANET Internet Protocol (IP) LSAP identifier.
60
 */
66
 */
61
#define ETH_LSAP_IP 0x06
67
#define ETH_LSAP_IP 0x06
62
/** SNA LSAP identifier.
68
/** SNA LSAP identifier.
63
 */
69
 */
64
#define ETH_LSAP_SNA    0x08
70
#define ETH_LSAP_SNA    0x08
65
/** SNA LSAP identifier.
71
/** SNA LSAP identifier.
66
 */
72
 */
67
#define ETH_LSAP_SNA2   0x0C
73
#define ETH_LSAP_SNA2   0x0C
68
/** PROWAY (IEC955) Network Management & Initialization LSAP identifier.
74
/** PROWAY (IEC955) Network Management & Initialization LSAP identifier.
69
 */
75
 */
70
#define ETH_LSAP_PROWAY_NMI 0x0E
76
#define ETH_LSAP_PROWAY_NMI 0x0E
71
/** Texas Instruments LSAP identifier.
77
/** Texas Instruments LSAP identifier.
72
 */
78
 */
73
#define ETH_LSAP_TI 0x18
79
#define ETH_LSAP_TI 0x18
74
/** IEEE 802.1 Bridge Spanning Tree Protocol LSAP identifier.
80
/** IEEE 802.1 Bridge Spanning Tree Protocol LSAP identifier.
75
 */
81
 */
76
#define ETH_LSAP_BRIDGE 0x42
82
#define ETH_LSAP_BRIDGE 0x42
77
/** EIA RS-511 Manufacturing Message Service LSAP identifier.
83
/** EIA RS-511 Manufacturing Message Service LSAP identifier.
78
 */
84
 */
79
#define ETH_LSAP_EIS    0x4E
85
#define ETH_LSAP_EIS    0x4E
80
/** ISO 8208 (X.25 over IEEE 802.2 Type 2 LLC) LSAP identifier.
86
/** ISO 8208 (X.25 over IEEE 802.2 Type 2 LLC) LSAP identifier.
81
 */
87
 */
82
#define ETH_LSAP_ISO8208    0x7E
88
#define ETH_LSAP_ISO8208    0x7E
83
/** Xerox Network Systems (XNS) LSAP identifier.
89
/** Xerox Network Systems (XNS) LSAP identifier.
84
 */
90
 */
85
#define ETH_LSAP_XNS    0x80
91
#define ETH_LSAP_XNS    0x80
86
/** Nestar LSAP identifier.
92
/** Nestar LSAP identifier.
87
 */
93
 */
88
#define ETH_LSAP_NESTAR 0x86
94
#define ETH_LSAP_NESTAR 0x86
89
/** PROWAY (IEC 955) Active Station List Maintenance LSAP identifier.
95
/** PROWAY (IEC 955) Active Station List Maintenance LSAP identifier.
90
 */
96
 */
91
#define ETH_LSAP_PROWAY_ASLM    0x8E
97
#define ETH_LSAP_PROWAY_ASLM    0x8E
92
/** ARPANET Address Resolution Protocol (ARP) LSAP identifier.
98
/** ARPANET Address Resolution Protocol (ARP) LSAP identifier.
93
 */
99
 */
94
#define ETH_LSAP_ARP    0x98
100
#define ETH_LSAP_ARP    0x98
95
/** Banyan VINES LSAP identifier.
101
/** Banyan VINES LSAP identifier.
96
 */
102
 */
97
#define ETH_LSAP_VINES  0xBC
103
#define ETH_LSAP_VINES  0xBC
98
/** SubNetwork Access Protocol (SNAP) LSAP identifier.
104
/** SubNetwork Access Protocol (SNAP) LSAP identifier.
99
 */
105
 */
100
#define ETH_LSAP_SNAP   0xAA
106
#define ETH_LSAP_SNAP   0xAA
101
/** Novell NetWare LSAP identifier.
107
/** Novell NetWare LSAP identifier.
102
 */
108
 */
103
#define ETH_LSAP_NETWARE    0xE0
109
#define ETH_LSAP_NETWARE    0xE0
104
/** IBM NetBIOS LSAP identifier.
110
/** IBM NetBIOS LSAP identifier.
105
 */
111
 */
106
#define ETH_LSAP_NETBIOS    0xF0
112
#define ETH_LSAP_NETBIOS    0xF0
107
/** IBM LAN Management (individual) LSAP identifier.
113
/** IBM LAN Management (individual) LSAP identifier.
108
 */
114
 */
109
#define ETH_LSAP_ILAN   0xF4
115
#define ETH_LSAP_ILAN   0xF4
110
/** IBM LAN Management (group) LSAP identifier.
116
/** IBM LAN Management (group) LSAP identifier.
111
 */
117
 */
112
#define ETH_LSAP_GLAN   0xF5
118
#define ETH_LSAP_GLAN   0xF5
113
/** IBM Remote Program Load (RPL) LSAP identifier.
119
/** IBM Remote Program Load (RPL) LSAP identifier.
114
 */
120
 */
115
#define ETH_LSAP_RPL    0xF8
121
#define ETH_LSAP_RPL    0xF8
116
/** Ungermann-Bass LSAP identifier.
122
/** Ungermann-Bass LSAP identifier.
117
 */
123
 */
118
#define ETH_LSAP_UB 0xFA
124
#define ETH_LSAP_UB 0xFA
119
/** ISO Network Layer Protocol LSAP identifier.
125
/** ISO Network Layer Protocol LSAP identifier.
120
 */
126
 */
121
#define ETH_LSAP_ISONLP 0xFE
127
#define ETH_LSAP_ISONLP 0xFE
122
/** Global LSAP LSAP identifier.
128
/** Global LSAP LSAP identifier.
123
 */
129
 */
124
#define ETH_LSAP_GLSAP  0xFF
130
#define ETH_LSAP_GLSAP  0xFF
125
 
131
 
-
 
132
/*@}*/
-
 
133
 
126
#endif
134
#endif
127
 
135
 
128
/** @}
136
/** @}
129
 */
137
 */
130
 
138