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