]> git.saurik.com Git - apple/libc.git/blob - mach/servers/nm_defs.h
Libc-391.2.6.tar.gz
[apple/libc.git] / mach / servers / nm_defs.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_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. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
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
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /*
24 * Mach Operating System
25 * Copyright (c) 1987 Carnegie-Mellon University
26 * All rights reserved. The CMU software License Agreement specifies
27 * the terms and conditions for use and redistribution.
28 */
29
30 /*
31 * Random definitions for the network service that everyone needs!
32 */
33
34 /*
35 * HISTORY:
36 * 27-Mar-90 Gregg Kellogg (gk) at NeXT
37 * include <sys/netport.h> rather than <sys/ipc_netport.h>
38 *
39 * 24-Aug-88 Daniel Julin (dpj) at Carnegie-Mellon University
40 * Replace sys/mach_ipc_netport.h with kern/ipc_netport.h. Sigh.
41 *
42 * 24-May-88 Daniel Julin (dpj) at Carnegie-Mellon University
43 * Replace mach_ipc_vmtp.h with mach_ipc_netport.h.
44 *
45 * 4-Sep-87 Daniel Julin (dpj) at Carnegie-Mellon University
46 * Fixed for new kernel include files which declare a lot
47 * of network server stuff internally, because of the NETPORT
48 * option.
49 *
50 * 5-Nov-86 Robert Sansom (rds) at Carnegie-Mellon University
51 * Started.
52 *
53 */
54
55 #ifndef _NM_DEFS_
56 #define _NM_DEFS_
57
58 /*
59 * netaddr_t is declared with the kernel files,
60 * in <sys/netport.h>.
61 */
62 #include <sys/netport.h>
63
64 #ifdef notdef
65 typedef unsigned long netaddr_t;
66 #endif /* notdef */
67
68 typedef union {
69 struct {
70 unsigned char ia_net_owner;
71 unsigned char ia_net_node_type;
72 unsigned char ia_host_high;
73 unsigned char ia_host_low;
74 } ia_bytes;
75 netaddr_t ia_netaddr;
76 } ip_addr_t;
77
78 #endif /* _NM_DEFS_ */
79