]> git.saurik.com Git - apple/xnu.git/blob - bsd/netat/lap.h
6eeb8077f97484eb39863a7dde61768a67a5b37a
[apple/xnu.git] / bsd / netat / lap.h
1 /*
2 * Copyright (c) 2006 Apple Computer, Inc. All Rights Reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30 /*
31 * Copyright (c) 1988, 1989 Apple Computer, Inc.
32 */
33
34 /* Definitions for generic access to AppleTalk link level protocols.
35 */
36
37 #ifndef _NETAT_LAP_H_
38 #define _NETAT_LAP_H_
39 #include <sys/appleapiopts.h>
40
41 #ifdef __APPLE_API_OBSOLETE
42
43 #define AT_MID_ELAP 202
44
45 /* elap ioctl's */
46
47 #define ELAP_IOC_MYIOCTL(i) ((i>>8) == AT_MID_ELAP)
48 #define ELAP_IOC_GET_STATS ((AT_MID_ELAP<<8) | 2)
49
50 #define AT_MID_LAP 214
51
52 /* Generic LAP ioctl's. Each LAP may implement other ioctl's specific to
53 * its functionality.
54 */
55 #define LAP_IOC_MYIOCTL(i) ((i>>8) == AT_MID_LAP)
56 #define LAP_IOC_ADD_ROUTE ((AT_MID_LAP<<8) | 9)
57 #define LAP_IOC_GET_ZONE ((AT_MID_LAP<<8) | 12)
58 #define LAP_IOC_GET_ROUTE ((AT_MID_LAP<<8) | 13)
59 #define LAP_IOC_SNMP_GET_CFG ((AT_MID_LAP<<8) | 21)
60 #define LAP_IOC_SNMP_GET_AARP ((AT_MID_LAP<<8) | 22)
61 #define LAP_IOC_SNMP_GET_RTMP ((AT_MID_LAP<<8) | 23)
62 #define LAP_IOC_SNMP_GET_ZIP ((AT_MID_LAP<<8) | 24)
63 #define LAP_IOC_SNMP_GET_DDP ((AT_MID_LAP<<8) | 25)
64 #define LAP_IOC_SNMP_GET_NBP ((AT_MID_LAP<<8) | 26)
65 #define LAP_IOC_SNMP_GET_PORTS ((AT_MID_LAP<<8) | 27)
66
67 #ifdef NOT_USED
68
69 #define ELAP_IOC_GET_CFG ((AT_MID_ELAP<<8) | 1) /* not used */
70 #define ELAP_IOC_SET_CFG ((AT_MID_ELAP<<8) | 3) /* not used */
71 #define ELAP_IOC_SET_ZONE ((AT_MID_ELAP<<8) | 4) /* not used */
72 #define ELAP_IOC_SWITCHZONE ((AT_MID_ELAP<<8) | 5) /* not used */
73
74 #define LAP_IOC_ONLINE ((AT_MID_LAP<<8) | 1) /* not used */
75 #define LAP_IOC_OFFLINE ((AT_MID_LAP<<8) | 2) /* not used */
76 #define LAP_IOC_GET_IFS_STAT ((AT_MID_LAP<<8) | 3) /* not used */
77 #define LAP_IOC_ADD_ZONE ((AT_MID_LAP<<8) | 4) /* not used */
78 #define LAP_IOC_ROUTER_START ((AT_MID_LAP<<8) | 5) /* not used */
79 #define LAP_IOC_ROUTER_SHUTDOWN ((AT_MID_LAP<<8) | 6) /* not used */
80 #define LAP_IOC_ROUTER_INIT ((AT_MID_LAP<<8) | 7) /* not used */
81 #define LAP_IOC_GET_IFID ((AT_MID_LAP<<8) | 8) /* not used */
82 #define LAP_IOC_GET_DBG ((AT_MID_LAP<<8) | 10) /* not used */
83 #define LAP_IOC_SET_DBG ((AT_MID_LAP<<8) | 11) /* not used */
84 #define LAP_IOC_ADD_IFNAME ((AT_MID_LAP<<8) | 14) /* not used */
85 #define LAP_IOC_DO_DEFER ((AT_MID_LAP<<8) | 15) /* not used */
86 #define LAP_IOC_DO_DELAY ((AT_MID_LAP<<8) | 16) /* not used */
87 #define LAP_IOC_SHUT_DOWN ((AT_MID_LAP<<8) | 17) /* not used */
88 #define LAP_IOC_CHECK_STATE ((AT_MID_LAP<<8) | 18) /* not used */
89 #define LAP_IOC_DEL_IFNAME ((AT_MID_LAP<<8) | 19) /* not used */
90 #define LAP_IOC_SET_MIX ((AT_MID_LAP<<8) | 20) /* not used */
91 #define LAP_IOC_SET_LOCAL_ZONES ((AT_MID_LAP<<8) | 28) /* not used */
92 #define LAP_IOC_GET_LOCAL_ZONE ((AT_MID_LAP<<8) | 29) /* not used */
93 #define LAP_IOC_IS_ZONE_LOCAL ((AT_MID_LAP<<8) | 30) /* not used */
94 #define LAP_IOC_GET_MODE ((AT_MID_LAP<<8) | 31) /* not used */
95 #define LAP_IOC_GET_IF_NAMES ((AT_MID_LAP<<8) | 32) /* not used */
96 #define LAP_IOC_GET_DEFAULT_ZONE ((AT_MID_LAP<<8) | 33) /* not used */
97 #define LAP_IOC_SET_DEFAULT_ZONES ((AT_MID_LAP<<8) | 34) /* not used */
98
99 #endif /* NOT_USED */
100
101 #endif /* __APPLE_API_OBSOLETE */
102 #endif /* _NETAT_LAP_H_ */
103