]> git.saurik.com Git - apple/xnu.git/blame - bsd/netat/at_config.h
xnu-792.6.56.tar.gz
[apple/xnu.git] / bsd / netat / at_config.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
ff6e181a
A
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
11 * file.
1c79356b 12 *
ff6e181a
A
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
1c79356b
A
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
ff6e181a
A
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.
1c79356b
A
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23/*
24 * Copyright (c) 1988-1993 Apple Computer, Inc.
25 */
26
27#ifndef _NETAT_AT_CONFIG_H_
28#define _NETAT_AT_CONFIG_H_
9bccf70c 29#include <sys/appleapiopts.h>
1c79356b 30
91447636
A
31#ifdef __APPLE_API_OBSOLETE
32
1c79356b
A
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
48typedef 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
57typedef 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
63typedef 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 */
71typedef 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
91447636 79#endif /* __APPLE_API_OBSOLETE */
1c79356b 80#endif /* _NETAT_AT_CONFIG_H_ */