]>
git.saurik.com Git - apple/xnu.git/blob - bsd/netat/at_config.h
9514c64a7b3c3777a37914468e993fc4a38471f8
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1988-1993 Apple Computer, Inc.
26 #ifndef _NETAT_AT_CONFIG_H_
27 #define _NETAT_AT_CONFIG_H_
29 /* originally from if_cnt.h
31 * defines for if_stat struct.
32 * note: set IF_TYPE_CNT to number of types supported and make sure
33 * that defines for those type are LESS than this value
36 #define IF_TYPENO_CNT 1 /* number of different types we support */
37 /* *** this value was 5, but for now, let's
38 just start with ethernet *** */
40 /* maximum number of I/F's allowed */
41 /* *** "17" corresponds to Shiner *** */
42 #define IF_TOTAL_MAX 17 /* max count of any combination of I/F's */
44 typedef struct if_types
{
49 /* GET_ZONES defines */
50 #define GET_ALL_ZONES 0
51 #define GET_LOCAL_ZONES_ONLY 1
53 typedef struct if_zone_info
{
54 at_nvestr_t zone_name
; /* the zone name & len */
55 unsigned zone_ifs
[IF_TYPENO_CNT
]; /* bitmapped I/F usage for zone */
56 unsigned zone_home
; /* TRUE for home zone */
59 typedef union if_zone_nve
{
64 /* this struct used to obtain local zones for specific
65 ifID's from the kernel and to set default zones for
66 specific ifID numbers */
67 typedef struct if_zone
{
69 char usage
[IF_TOTAL_MAX
]; /* I/F usage (1 set if
71 int index
; /* zone index in ZT_table */
75 #endif /* _NETAT_AT_CONFIG_H_ */