• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/sys/netatalk/
1/*
2 * $Id: phase2.h,v 1.2 2001-06-29 14:14:47 rufustfirefly Exp $
3 *
4 * Copyright (c) 1990,1991 Regents of The University of Michigan.
5 * All Rights Reserved.
6 */
7
8# if defined( ultrix ) || defined( BSD4_4 )
9#include <net/if_llc.h>
10# else /* ultrix || BSD4_4 */
11
12#if defined( sun ) && !defined( __svr4__ )
13#include <net/if_ieee802.h>
14#endif /* sun && !__svr4__ */
15
16/*
17 * Copyright (c) 1988 Regents of the University of California.
18 * All rights reserved.
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
31struct 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#define llc_org_code llc_un.type_snap.org_code
61#define llc_ether_type llc_un.type_snap.ether_type
62
63#define LLC_UI		0x3
64#define LLC_UI_P	0x13
65#define LLC_XID		0xaf
66#define LLC_XID_P	0xbf
67#define LLC_TEST	0xe3
68#define LLC_TEST_P	0xf3
69
70#define LLC_ISO_LSAP	0xfe
71#define LLC_SNAP_LSAP	0xaa
72
73# endif /* ultrix && BSD4_4 */
74
75#if defined( sun ) || defined( ibm032 )
76#define SIOCPHASE1	_IOW(i, 100, struct ifreq)	/* AppleTalk phase 1 */
77#define SIOCPHASE2	_IOW(i, 101, struct ifreq)	/* AppleTalk phase 2 */
78#endif /* sun || ibm032 */
79
80#if defined( ultrix ) || defined( BSD4_4 ) || defined( _IBMR2 )
81#define SIOCPHASE1	_IOW('i', 100, struct ifreq)	/* AppleTalk phase 1 */
82#define SIOCPHASE2	_IOW('i', 101, struct ifreq)	/* AppleTalk phase 2 */
83#endif /* ultrix || BSD4_4 || _IBMR2 */
84