Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man7d / llc1.7d
blobae9c01c024601cf0db6726ac946840ea310159d8
1 '\" te
2 .\"  Copyright (c) 1997, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LLC1 7D "Feb 13, 1997"
7 .SH NAME
8 llc1 \- Logical Link Control Protocol Class 1 Driver
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB#include <sys/stropts.h>\fR
13 .fi
15 .LP
16 .nf
17 \fB#include <sys/ethernet.h>\fR
18 .fi
20 .LP
21 .nf
22 \fB#include <sys/dlpi.h>\fR
23 .fi
25 .LP
26 .nf
27 \fB#include <sys/llc1.h>\fR
28 .fi
30 .SH DESCRIPTION
31 .sp
32 .LP
33 The  \fBllc1\fR driver is a multi-threaded, loadable, clonable, STREAMS
34 multiplexing driver supporting the connectionless Data Link Provider Interface,
35 \fBdlpi\fR(7P), implementing IEEE 802.2 Logical Link Control Protocol Class 1
36 over a STREAM to a MAC level driver. Multiple MAC level interfaces installed
37 within the system can be supported by the driver. The  \fBllc1\fR driver
38 provides basic support for the LLC1 protocol. Functions provided include frame
39 transmit and receive, XID, and TEST, multicast support, and error recovery and
40 reporting.
41 .sp
42 .LP
43 The cloning, character-special device, \fB/dev/llc1\fR, is used to access all
44 LLC1 controllers configured under \fBllc1\fR.
45 .sp
46 .LP
47 The  \fBllc1\fR driver is a "Style 2" Data Link Service provider. All messages
48 of types \fBM_PROTO\fR and \fBM_PCPROTO\fR are interpreted as DLPI primitives.
49 An explicit \fBDL_ATTACH_REQ\fR message by the user is required to associate
50 the opened stream with a particular device (\fBppa\fR). The \fBppa\fR ID is
51 interpreted as an unsigned long and indicates the corresponding device instance
52 (unit) number. An error  (\fBDL_ERROR_ACK\fR) is returned by the driver if the
53 \fBppa\fR field value does not correspond to a valid device instance number for
54 this system.
55 .sp
56 .LP
57 The values returned by the driver in the \fBDL_INFO_ACK\fR primitive in
58 response to the \fBDL_INFO_REQ\fR from the user are as follows:
59 .RS +4
60 .TP
61 .ie t \(bu
62 .el o
63 The maximum Service Data UNIT (SDU) is derived from the MAC layer linked below
64 the driver.  In the case of an Ethernet driver, the SDU will be 1497.
65 .RE
66 .RS +4
67 .TP
68 .ie t \(bu
69 .el o
70 The minimum SDU is 0.
71 .RE
72 .RS +4
73 .TP
74 .ie t \(bu
75 .el o
76 The MAC type is \fBDL_CSMACD\fR or  \fBDL_TPR\fR as determined by the driver
77 linked under \fBllc1.\fR If the driver reports that it is \fBDL_ETHER,\fR it
78 will be changed to \fBDL_CSMACD;\fR otherwise the type is the same as the MAC
79 type.
80 .RE
81 .RS +4
82 .TP
83 .ie t \(bu
84 .el o
85 The \fBsap\fR length value is \(mi1, meaning the physical address component is
86 followed immediately by a 1-octet \fBsap\fR component within the DLSAP address.
87 .RE
88 .RS +4
89 .TP
90 .ie t \(bu
91 .el o
92 The service mode is \fBDL_CLDLS.\fR
93 .RE
94 .RS +4
95 .TP
96 .ie t \(bu
97 .el o
98 The MAC type is \fBDL_CSMACD\fR or  \fBDL_TPR\fR as determined by the driver
99 linked under \fBllc1.\fR If the driver reports that it is \fBDL_ETHER,\fR it
100 will be changed to \fBDL_CSMACD;\fR otherwise the type is the same as the MAC
101 type.
103 .RS +4
105 .ie t \(bu
106 .el o
107 The  \fBdlsap\fR address length is 7.
109 .RS +4
111 .ie t \(bu
112 .el o
113 No optional quality of service (QOS) support is included at present, so the QOS
114 fields should be initialized to 0.
116 .RS +4
118 .ie t \(bu
119 .el o
120 The DLPI version is \fBDL_VERSION_2.\fR
122 .RS +4
124 .ie t \(bu
125 .el o
126 The provider style is \fBDL_STYLE2.\fR
128 .RS +4
130 .ie t \(bu
131 .el o
132 The broadcast address value is the broadcast address returned from the lower
133 level driver.
137 Once in the \fBDL_ATTACHED\fR state, the user must send a \fBDL_BIND_REQ\fR to
138 associate a particular Service Access Point (SAP) with the stream. The
139 \fBllc1\fR driver interprets the  \fBsap\fR field within the \fBDL_BIND_REQ\fR
140 as an IEEE 802.2 "SAP," therefore valid values for the \fBsap\fR field are in
141 the [0-0xFF] range with only even values being legal.
144 The  \fBllc1\fR driver DLSAP address format consists of  the 6-octet physical
145 (e.g., Ethernet) address component followed immediately by the 1-octet
146 \fBsap\fR (type) component producing a 7-octet DLSAP address. Applications
147 should  \fInot\fR hard-code to this particular implementation-specific DLSAP
148 address format, but use information returned in the \fBDL_INFO_ACK\fR primitive
149 to compose and decompose DLSAP addresses. The \fBsap\fR length, full DLSAP
150 length, and \fBsap\fR/physical ordering are included within the
151 \fBDL_INFO_ACK.\fR The physical address length can be computed by subtracting
152 the absolute value of the \fBsap\fR length from the full DLSAP address length
153 or by issuing the  \fBDL_PHYS_ADDR_REQ\fR to obtain the current physical
154 address associated with the stream.
157 Once in the \fBDL_BOUND\fR state, the user may transmit frames on the LAN by
158 sending \fBDL_UNITDATA_REQ\fR messages to the  \fBllc1\fR driver. The
159 \fBllc1\fR driver will route received frames up all open and bound streams
160 having a \fBsap\fR which matches the IEEE 802.2 DSAP as  \fBDL_UNITDATA_IND\fR
161 messages. Received frames are duplicated and routed up multiple open streams if
162 necessary. The DLSAP address contained within the \fBDL_UNITDATA_REQ\fR and
163 \fBDL_UNITDATA_IND\fR messages consists of both the \fBsap\fR (type) and
164 physical (Ethernet) components.
167 In addition to the mandatory, connectionless DLPI message set, the driver
168 additionally supports the following primitives:
171 The \fBDL_ENABMULTI_REQ\fR and \fBDL_DISABMULTI_REQ\fR primitives
172 enable/disable reception of specific multicast group addresses. A set of
173 multicast addresses may be iteratively created and modified on a per-stream
174 basis using these primitives. These primitives are accepted by the driver in
175 any driver state that is valid while still being attached to the \fBppa\fR.
178 The \fBDL_PHYS_ADDR_REQ\fR primitive returns the 6-octet physical address
179 currently associated (attached) to the stream in the  \fBDL_PHYS_ADDR_ACK\fR
180 primitive. This primitive is valid only in states following a successful
181 \fBDL_ATTACH_REQ.\fR
184 The \fBDL_SET_PHYS_ADDR_REQ\fR primitive changes the 6-octet physical address
185 currently associated (attached) to this stream. Once changed, all streams
186 subsequently opened and attached to this device will obtain this new physical
187 address. Once changed, the physical address will remain set until this
188 primitive is used to change the physical address again or the system is
189 rebooted, whichever occurs first.
192 The \fBDL_XID_REQ/DL_TEST_REQ\fR primitives provide the means for a user to
193 issue an \fBLLC XID\fR or \fBTEST\fR request message.  A response to one of
194 these messages will be in the form of a  \fBDL_XID_CON/DL_TEST_CON\fR message.
197 The  \fBDL_XID_RES/DL_TEST_RES\fR primitives provide a way for the user to
198 respond to the receipt of an  \fBXID\fR or  \fBTEST\fR message that was
199 received as a  \fBDL_XID_IND/DL_TEST_IND\fR message.
202 \fBXID\fR and  \fBTEST\fR will be automatically processed by \fBllc1\fR if the
203 \fBDL_AUTO_XID/DL_AUTO_TEST\fR bits are set in the \fBDL_BIND_REQ.\fR
204 .SH FILES
206 .ne 2
208 \fB\fB/dev/llc1\fR\fR
210 .RS 13n
211 cloning, character-special device
214 .SH ATTRIBUTES
217 See \fBattributes\fR(5) for descriptions of the following attributes:
222 box;
223 c | c
224 l | l .
225 ATTRIBUTE TYPE  ATTRIBUTE VALUE
227 Architecture    x86
230 .SH SEE ALSO
233 \fBattributes\fR(5), \fBdlpi\fR(7P)