xref: /xnu-10002.81.5/libsyscall/mach/servers/nm_defs.h (revision 5e3eaea39dcf651e66cb99ba7d70e32cc4a99587)
1 /*
2  * Copyright (c) 1999 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  * Mach Operating System
30  * Copyright (c) 1987 Carnegie-Mellon University
31  * All rights reserved.  The CMU software License Agreement specifies
32  * the terms and conditions for use and redistribution.
33  */
34 
35 /*
36  * Random definitions for the network service that everyone needs!
37  */
38 
39 /*
40  * HISTORY:
41  * 27-Mar-90  Gregg Kellogg (gk) at NeXT
42  *	include <sys/netport.h> rather than <sys/ipc_netport.h>
43  *
44  * 24-Aug-88  Daniel Julin (dpj) at Carnegie-Mellon University
45  *	Replace sys/mach_ipc_netport.h with kern/ipc_netport.h. Sigh.
46  *
47  * 24-May-88  Daniel Julin (dpj) at Carnegie-Mellon University
48  *	Replace mach_ipc_vmtp.h with mach_ipc_netport.h.
49  *
50  *  4-Sep-87  Daniel Julin (dpj) at Carnegie-Mellon University
51  *	Fixed for new kernel include files which declare a lot
52  *	of network server stuff internally, because of the NETPORT
53  *	option.
54  *
55  *  5-Nov-86  Robert Sansom (rds) at Carnegie-Mellon University
56  *	Started.
57  *
58  */
59 
60 #ifndef _NM_DEFS_
61 #define _NM_DEFS_
62 
63 /*
64  * netaddr_t is declared with the kernel files,
65  * in <sys/netport.h>.
66  */
67 #include        <sys/netport.h>
68 
69 #ifdef  notdef
70 typedef unsigned long   netaddr_t;
71 #endif  /* notdef */
72 
73 typedef union {
74 	struct {
75 		unsigned char ia_net_owner;
76 		unsigned char ia_net_node_type;
77 		unsigned char ia_host_high;
78 		unsigned char ia_host_low;
79 	} ia_bytes;
80 	netaddr_t ia_netaddr;
81 } ip_addr_t;
82 
83 #endif  /* _NM_DEFS_ */
84