phase2.h revision 15885
1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 */ 5 6# if defined( ultrix ) || defined( BSD4_4 ) 7#include <net/if_llc.h> 8# if defined( __FreeBSD__ ) 9#define llc_org_code llc_un.type_snap.org_code 10#define llc_ether_type llc_un.type_snap.ether_type 11# endif __FreeBSD__ 12# else ultrix BSD4_4 13 14#ifdef sun 15#include <net/if_ieee802.h> 16#endif sun 17 18/* 19 * Copyright (c) 1988 Regents of the University of California. 20 * All rights reserved. 21 * 22 * @(#)if_llc.h 7.2 (Berkeley) 6/28/90 23 */ 24 25/* 26 * IEEE 802.2 Link Level Control headers, for use in conjunction with 27 * 802.{3,4,5} media access control methods. 28 * 29 * Headers here do not use bit fields due to shortcommings in many 30 * compilers. 31 */ 32 33struct llc { 34 u_char llc_dsap; 35 u_char llc_ssap; 36 union { 37 struct { 38 u_char control; 39 u_char format_id; 40 u_char class; 41 u_char window_x2; 42 } type_u; 43 struct { 44 u_char num_snd_x2; 45 u_char num_rcv_x2; 46 } type_i; 47 struct { 48 u_char control; 49 u_char num_rcv_x2; 50 } type_s; 51 struct { 52 u_char control; 53 u_char org_code[3]; 54 u_short ether_type; 55 } type_snap; 56 } llc_un; 57}; 58#define llc_control llc_un.type_u.control 59#define llc_fid llc_un.type_u.format_id 60#define llc_class llc_un.type_u.class 61#define llc_window llc_un.type_u.window_x2 62#define llc_org_code llc_un.type_snap.org_code 63#define llc_ether_type llc_un.type_snap.ether_type 64 65#define LLC_UI 0x3 66#define LLC_UI_P 0x13 67#define LLC_XID 0xaf 68#define LLC_XID_P 0xbf 69#define LLC_TEST 0xe3 70#define LLC_TEST_P 0xf3 71 72#define LLC_ISO_LSAP 0xfe 73#define LLC_SNAP_LSAP 0xaa 74 75# endif ultrix BSD4_4 76 77#if defined( sun ) || defined( ibm032 ) 78#define SIOCPHASE1 _IOW(i, 100, struct ifreq) /* AppleTalk phase 1 */ 79#define SIOCPHASE2 _IOW(i, 101, struct ifreq) /* AppleTalk phase 2 */ 80#endif sun ibm032 81 82#if defined( ultrix ) || defined( BSD4_4 ) || defined( _IBMR2 ) 83#define SIOCPHASE1 _IOW('i', 100, struct ifreq) /* AppleTalk phase 1 */ 84#define SIOCPHASE2 _IOW('i', 101, struct ifreq) /* AppleTalk phase 2 */ 85#endif ultrix BSD4_4 _IBMR2 86