source: mainline/uspace/lib/net/include/ethernet_lsap.h@ 849ed54

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 849ed54 was 849ed54, checked in by Martin Decky <martin@…>, 15 years ago

Networking work:
Split the networking stack into end-user library (libsocket) and two helper libraries (libnet and libnetif).
Don't use over-the-hand compiling and linking, but rather separation of conserns.
There might be still some issues and the non-modular networking architecture is currently broken, but this will be fixed soon.

  • Property mode set to 100644
File size: 3.9 KB
Line 
1/*
2 * Copyright (c) 2009 Lukas Mejdrech
3 * All rights reserved.
4 *
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 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
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
15 * derived from this software without specific prior written permission.
16 *
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
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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
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
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup eth
30 * @{
31 */
32
33/** @file
34 * Link service access point identifiers.
35 */
36
37#ifndef __NET_ETHERNET_LSAP_H__
38#define __NET_ETHERNET_LSAP_H__
39
40#include <sys/types.h>
41
42/** Ethernet LSAP type definition.
43 */
44typedef uint8_t eth_lsap_t;
45
46/** @name Ethernet LSAP values definitions
47 */
48/*@{*/
49
50/** Null LSAP LSAP identifier.
51 */
52#define ETH_LSAP_NULL 0x00
53/** Individual LLC Sublayer Management Function LSAP identifier.
54 */
55#define ETH_LSAP_ISLMF 0x02
56/** Group LLC Sublayer Management Function LSAP identifier.
57 */
58#define ETH_LSAP_GSLMI 0x03
59/** IBM SNA Path Control (individual) LSAP identifier.
60 */
61#define ETH_LSAP_ISNA 0x04
62/** IBM SNA Path Control (group) LSAP identifier.
63 */
64#define ETH_LSAP_GSNA 0x05
65/** ARPANET Internet Protocol (IP) LSAP identifier.
66 */
67#define ETH_LSAP_IP 0x06
68/** SNA LSAP identifier.
69 */
70#define ETH_LSAP_SNA 0x08
71/** SNA LSAP identifier.
72 */
73#define ETH_LSAP_SNA2 0x0C
74/** PROWAY (IEC955) Network Management &Initialization LSAP identifier.
75 */
76#define ETH_LSAP_PROWAY_NMI 0x0E
77/** Texas Instruments LSAP identifier.
78 */
79#define ETH_LSAP_TI 0x18
80/** IEEE 802.1 Bridge Spanning Tree Protocol LSAP identifier.
81 */
82#define ETH_LSAP_BRIDGE 0x42
83/** EIA RS-511 Manufacturing Message Service LSAP identifier.
84 */
85#define ETH_LSAP_EIS 0x4E
86/** ISO 8208 (X.25 over IEEE 802.2 Type 2 LLC) LSAP identifier.
87 */
88#define ETH_LSAP_ISO8208 0x7E
89/** Xerox Network Systems (XNS) LSAP identifier.
90 */
91#define ETH_LSAP_XNS 0x80
92/** Nestar LSAP identifier.
93 */
94#define ETH_LSAP_NESTAR 0x86
95/** PROWAY (IEC 955) Active Station List Maintenance LSAP identifier.
96 */
97#define ETH_LSAP_PROWAY_ASLM 0x8E
98/** ARPANET Address Resolution Protocol (ARP) LSAP identifier.
99 */
100#define ETH_LSAP_ARP 0x98
101/** Banyan VINES LSAP identifier.
102 */
103#define ETH_LSAP_VINES 0xBC
104/** SubNetwork Access Protocol (SNAP) LSAP identifier.
105 */
106#define ETH_LSAP_SNAP 0xAA
107/** Novell NetWare LSAP identifier.
108 */
109#define ETH_LSAP_NETWARE 0xE0
110/** IBM NetBIOS LSAP identifier.
111 */
112#define ETH_LSAP_NETBIOS 0xF0
113/** IBM LAN Management (individual) LSAP identifier.
114 */
115#define ETH_LSAP_ILAN 0xF4
116/** IBM LAN Management (group) LSAP identifier.
117 */
118#define ETH_LSAP_GLAN 0xF5
119/** IBM Remote Program Load (RPL) LSAP identifier.
120 */
121#define ETH_LSAP_RPL 0xF8
122/** Ungermann-Bass LSAP identifier.
123 */
124#define ETH_LSAP_UB 0xFA
125/** ISO Network Layer Protocol LSAP identifier.
126 */
127#define ETH_LSAP_ISONLP 0xFE
128/** Global LSAP LSAP identifier.
129 */
130#define ETH_LSAP_GLSAP 0xFF
131
132/*@}*/
133
134#endif
135
136/** @}
137 */
Note: See TracBrowser for help on using the repository browser.