]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
37839358 A |
6 | * The contents of this file constitute Original Code as defined in and |
7 | * are subject to the Apple Public Source License Version 1.1 (the | |
8 | * "License"). You may not use this file except in compliance with the | |
9 | * License. Please obtain a copy of the License at | |
10 | * http://www.apple.com/publicsource and read it before using this file. | |
1c79356b | 11 | * |
37839358 A |
12 | * This Original Code and all software distributed under the License are |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
37839358 A |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the |
17 | * License for the specific language governing rights and limitations | |
18 | * under the License. | |
1c79356b A |
19 | * |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * Copyright (c) 1988-1993 Apple Computer, Inc. | |
24 | */ | |
25 | ||
26 | #ifndef _NETAT_AT_CONFIG_H_ | |
27 | #define _NETAT_AT_CONFIG_H_ | |
9bccf70c | 28 | #include <sys/appleapiopts.h> |
1c79356b | 29 | |
91447636 A |
30 | #ifdef __APPLE_API_OBSOLETE |
31 | ||
1c79356b A |
32 | /* originally from if_cnt.h |
33 | * | |
34 | * defines for if_stat struct. | |
35 | * note: set IF_TYPE_CNT to number of types supported and make sure | |
36 | * that defines for those type are LESS than this value | |
37 | */ | |
38 | ||
39 | #define IF_TYPENO_CNT 1 /* number of different types we support */ | |
40 | /* *** this value was 5, but for now, let's | |
41 | just start with ethernet *** */ | |
42 | ||
43 | /* maximum number of I/F's allowed */ | |
44 | /* *** "17" corresponds to Shiner *** */ | |
45 | #define IF_TOTAL_MAX 17 /* max count of any combination of I/F's */ | |
46 | ||
47 | typedef struct if_types { | |
48 | int iftype, | |
49 | max_interfaces; | |
50 | } if_types_t; | |
51 | ||
52 | /* GET_ZONES defines */ | |
53 | #define GET_ALL_ZONES 0 | |
54 | #define GET_LOCAL_ZONES_ONLY 1 | |
55 | ||
56 | typedef struct if_zone_info { | |
57 | at_nvestr_t zone_name; /* the zone name & len */ | |
58 | unsigned zone_ifs[IF_TYPENO_CNT]; /* bitmapped I/F usage for zone */ | |
59 | unsigned zone_home; /* TRUE for home zone */ | |
60 | } if_zone_info_t; | |
61 | ||
62 | typedef union if_zone_nve { | |
63 | at_nvestr_t ifnve; | |
64 | int zone; | |
65 | } if_zone_nve_t; | |
66 | ||
67 | /* this struct used to obtain local zones for specific | |
68 | ifID's from the kernel and to set default zones for | |
69 | specific ifID numbers */ | |
70 | typedef struct if_zone { | |
71 | if_zone_nve_t ifzn; | |
72 | char usage[IF_TOTAL_MAX]; /* I/F usage (1 set if | |
73 | I/F in this zone */ | |
74 | int index; /* zone index in ZT_table */ | |
75 | } if_zone_t; | |
76 | ||
77 | ||
91447636 | 78 | #endif /* __APPLE_API_OBSOLETE */ |
1c79356b | 79 | #endif /* _NETAT_AT_CONFIG_H_ */ |