netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
phase2.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
3 * All Rights Reserved.
4 */
5
6# if defined( BSD4_4 )
7#include <net/if_llc.h>
8# else /* BSD4_4 */
9
10#if !defined( __svr4__ )
11#include <net/if_ieee802.h>
12#endif /* !__svr4__ */
13
14/*
15 * Copyright (c) 1988 Regents of the University of California.
16 * All rights reserved.
17 *
18 * @(#)if_llc.h 7.2 (Berkeley) 6/28/90
19 */
20
21/*
22 * IEEE 802.2 Link Level Control headers, for use in conjunction with
23 * 802.{3,4,5} media access control methods.
24 *
25 * Headers here do not use bit fields due to shortcommings in many
26 * compilers.
27 */
28
29struct llc {
30 unsigned char llc_dsap;
31 unsigned char llc_ssap;
32 union {
33 struct {
34 unsigned char control;
35 unsigned char format_id;
36 unsigned char class;
37 unsigned char window_x2;
39 struct {
40 unsigned char num_snd_x2;
41 unsigned char num_rcv_x2;
43 struct {
44 unsigned char control;
45 unsigned char num_rcv_x2;
47 struct {
48 unsigned char control;
49 unsigned char org_code[3];
50 unsigned short ether_type;
53};
54#define llc_control llc_un.type_u.control
55#define llc_fid llc_un.type_u.format_id
56#define llc_class llc_un.type_u.class
57#define llc_window llc_un.type_u.window_x2
58#define llc_org_code llc_un.type_snap.org_code
59#define llc_ether_type llc_un.type_snap.ether_type
60
61#define LLC_UI 0x3
62#define LLC_UI_P 0x13
63#define LLC_XID 0xaf
64#define LLC_XID_P 0xbf
65#define LLC_TEST 0xe3
66#define LLC_TEST_P 0xf3
67
68#define LLC_ISO_LSAP 0xfe
69#define LLC_SNAP_LSAP 0xaa
70
71#define SIOCPHASE1 _IOW('i', 100, struct ifreq) /* AppleTalk phase 1 */
72#define SIOCPHASE2 _IOW('i', 101, struct ifreq) /* AppleTalk phase 2 */
73#endif /* BSD4_4 */
Definition phase2.h:29
struct llc::@235321006004227301370345066044224376032150323262::@162245232346203343374242163102213004305332251101 type_s
unsigned char llc_ssap
Definition phase2.h:31
unsigned char num_snd_x2
Definition phase2.h:40
unsigned char org_code[3]
Definition phase2.h:49
struct llc::@235321006004227301370345066044224376032150323262::@212273307113311334077145240074021356325162177305 type_u
unsigned char num_rcv_x2
Definition phase2.h:41
struct llc::@235321006004227301370345066044224376032150323262::@236157213107001147376325174301144260050153102306 type_i
unsigned short ether_type
Definition phase2.h:50
unsigned char llc_dsap
Definition phase2.h:30
unsigned char control
Definition phase2.h:34
union llc::@235321006004227301370345066044224376032150323262 llc_un
struct llc::@235321006004227301370345066044224376032150323262::@100005050071176316320203053140125236242352145037 type_snap
unsigned char format_id
Definition phase2.h:35
unsigned char window_x2
Definition phase2.h:37