Commit | Line | Data |
---|---|---|
394326e6 MK |
1 | /* |
2 | * Copyright (c) 1988 Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
dbf0c423 | 5 | * %sccs.include.redist.c% |
394326e6 | 6 | * |
dbf0c423 | 7 | * @(#)if_llc.h 7.2 (Berkeley) %G% |
394326e6 MK |
8 | */ |
9 | ||
10 | /* | |
11 | * IEEE 802.2 Link Level Control headers, for use in conjunction with | |
12 | * 802.{3,4,5} media access control methods. | |
13 | * | |
14 | * Headers here do not use bit fields due to shortcommings in many | |
15 | * compilers. | |
16 | */ | |
17 | ||
18 | struct llc { | |
19 | u_char llc_dsap; | |
20 | u_char llc_ssap; | |
21 | union { | |
22 | struct { | |
23 | u_char control; | |
24 | u_char format_id; | |
25 | u_char class; | |
26 | u_char window_x2; | |
27 | } type_u; | |
28 | struct { | |
29 | u_char num_snd_x2; | |
30 | u_char num_rcv_x2; | |
31 | } type_i; | |
32 | struct { | |
33 | u_char control; | |
34 | u_char num_rcv_x2; | |
35 | } type_s; | |
36 | struct { | |
37 | u_char control; | |
38 | u_char org_code[3]; | |
39 | u_short ether_type; | |
40 | } type_snap; | |
41 | } llc_un; | |
42 | }; | |
43 | #define llc_control llc_un.type_u.control | |
44 | #define llc_fid llc_un.type_u.format_id | |
45 | #define llc_class llc_un.type_u.class | |
46 | #define llc_window llc_un.type_u.window_x2 | |
47 | ||
48 | #define LLC_UI 0x3 | |
49 | #define LLC_UI_P 0x13 | |
50 | #define LLC_XID 0xaf | |
51 | #define LLC_XID_P 0xbf | |
52 | #define LLC_TEST 0xe3 | |
53 | #define LLC_TEST_P 0xf3 | |
54 | ||
55 | #define LLC_ISO_LSAP 0xfe | |
56 | #define LLC_SNAP_LSAP 0xaa |