|
|
1.1 root 1: /*
2: * Copyright (c) 1988 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution is only permitted until one year after the first shipment
6: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
7: * binary forms are permitted provided that: (1) source distributions retain
8: * this entire copyright notice and comment, and (2) distributions including
9: * binaries display the following acknowledgement: This product includes
10: * software developed by the University of California, Berkeley and its
11: * contributors'' in the documentation or other materials provided with the
12: * distribution and in all advertising materials mentioning features or use
13: * of this software. Neither the name of the University nor the names of
14: * its contributors may be used to endorse or promote products derived from
15: * this software without specific prior written permission.
16: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
17: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
18: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19: *
20: * @(#)if_llc.h 7.2 (Berkeley) 6/28/90
21: */
22:
23: /*
24: * IEEE 802.2 Link Level Control headers, for use in conjunction with
25: * 802.{3,4,5} media access control methods.
26: *
27: * Headers here do not use bit fields due to shortcommings in many
28: * compilers.
29: */
30:
31: struct llc {
32: u_char llc_dsap;
33: u_char llc_ssap;
34: union {
35: struct {
36: u_char control;
37: u_char format_id;
38: u_char class;
39: u_char window_x2;
40: } type_u;
41: struct {
42: u_char num_snd_x2;
43: u_char num_rcv_x2;
44: } type_i;
45: struct {
46: u_char control;
47: u_char num_rcv_x2;
48: } type_s;
49: struct {
50: u_char control;
51: u_char org_code[3];
52: u_short ether_type;
53: } type_snap;
54: } llc_un;
55: };
56: #define llc_control llc_un.type_u.control
57: #define llc_fid llc_un.type_u.format_id
58: #define llc_class llc_un.type_u.class
59: #define llc_window llc_un.type_u.window_x2
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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.