]>
git.saurik.com Git - apple/xnu.git/blob - bsd/netat/at_config.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
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 License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
29 * Copyright (c) 1988-1993 Apple Computer, Inc.
32 #ifndef _NETAT_AT_CONFIG_H_
33 #define _NETAT_AT_CONFIG_H_
34 #include <sys/appleapiopts.h>
36 #ifdef __APPLE_API_OBSOLETE
38 /* originally from if_cnt.h
40 * defines for if_stat struct.
41 * note: set IF_TYPE_CNT to number of types supported and make sure
42 * that defines for those type are LESS than this value
45 #define IF_TYPENO_CNT 1 /* number of different types we support */
46 /* *** this value was 5, but for now, let's
47 just start with ethernet *** */
49 /* maximum number of I/F's allowed */
50 /* *** "17" corresponds to Shiner *** */
51 #define IF_TOTAL_MAX 17 /* max count of any combination of I/F's */
53 typedef struct if_types
{
58 /* GET_ZONES defines */
59 #define GET_ALL_ZONES 0
60 #define GET_LOCAL_ZONES_ONLY 1
62 typedef struct if_zone_info
{
63 at_nvestr_t zone_name
; /* the zone name & len */
64 unsigned zone_ifs
[IF_TYPENO_CNT
]; /* bitmapped I/F usage for zone */
65 unsigned zone_home
; /* TRUE for home zone */
68 typedef union if_zone_nve
{
73 /* this struct used to obtain local zones for specific
74 ifID's from the kernel and to set default zones for
75 specific ifID numbers */
76 typedef struct if_zone
{
78 char usage
[IF_TOTAL_MAX
]; /* I/F usage (1 set if
80 int index
; /* zone index in ZT_table */
84 #endif /* __APPLE_API_OBSOLETE */
85 #endif /* _NETAT_AT_CONFIG_H_ */