1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
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.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
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.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28/*
29 *        Copyright (c) 1988-1993 Apple Computer, Inc.
30 */
31
32#ifndef _NETAT_AT_CONFIG_H_
33#define	_NETAT_AT_CONFIG_H_
34#include <sys/appleapiopts.h>
35
36#ifdef __APPLE_API_OBSOLETE
37
38/* originally from if_cnt.h
39 *
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
43 */
44
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 *** */
48
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 */
52
53typedef struct if_types {
54	int 	iftype,
55		max_interfaces;
56} if_types_t;
57
58	/* GET_ZONES defines */
59#define GET_ALL_ZONES 			0
60#define GET_LOCAL_ZONES_ONLY	 	1
61
62typedef 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 */
66} if_zone_info_t;
67
68typedef union if_zone_nve {
69	at_nvestr_t	ifnve;
70	int		zone;
71} if_zone_nve_t;
72
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 */
76typedef struct if_zone {
77	if_zone_nve_t	ifzn;
78	char		usage[IF_TOTAL_MAX];	/* I/F usage (1 set if
79						   I/F in this zone */
80	int		index;			/* zone index in ZT_table */
81} if_zone_t;
82
83
84#endif /* __APPLE_API_OBSOLETE */
85#endif /* _NETAT_AT_CONFIG_H_ */
86