]>
git.saurik.com Git - apple/xnu.git/blob - bsd/netat/at_config.h
bb0cf5d99043a22e147fea1a7cde424cc198779c
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_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. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 * Copyright (c) 1988-1993 Apple Computer, Inc.
27 #ifndef _NETAT_AT_CONFIG_H_
28 #define _NETAT_AT_CONFIG_H_
29 #include <sys/appleapiopts.h>
31 #ifdef __APPLE_API_OBSOLETE
33 /* originally from if_cnt.h
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
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 *** */
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 */
48 typedef struct if_types
{
53 /* GET_ZONES defines */
54 #define GET_ALL_ZONES 0
55 #define GET_LOCAL_ZONES_ONLY 1
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 */
63 typedef union if_zone_nve
{
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
{
73 char usage
[IF_TOTAL_MAX
]; /* I/F usage (1 set if
75 int index
; /* zone index in ZT_table */
79 #endif /* __APPLE_API_OBSOLETE */
80 #endif /* _NETAT_AT_CONFIG_H_ */