]>
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_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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.
23 * @APPLE_LICENSE_HEADER_END@
26 * Copyright (c) 1988-1993 Apple Computer, Inc.
29 #ifndef _NETAT_AT_CONFIG_H_
30 #define _NETAT_AT_CONFIG_H_
31 #include <sys/appleapiopts.h>
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 /* _NETAT_AT_CONFIG_H_ */