]> git.saurik.com Git - apple/libc.git/blame - mach/servers/nm_defs.h
Libc-262.2.12.tar.gz
[apple/libc.git] / mach / servers / nm_defs.h
CommitLineData
e9ce8d39
A
1/*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
734aad71 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
e9ce8d39 7 *
734aad71
A
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
e9ce8d39
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
734aad71
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
e9ce8d39
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/*
26 * Mach Operating System
27 * Copyright (c) 1987 Carnegie-Mellon University
28 * All rights reserved. The CMU software License Agreement specifies
29 * the terms and conditions for use and redistribution.
30 */
31
32/*
33 * Random definitions for the network service that everyone needs!
34 */
35
36/*
37 * HISTORY:
38 * 27-Mar-90 Gregg Kellogg (gk) at NeXT
39 * include <sys/netport.h> rather than <sys/ipc_netport.h>
40 *
41 * 24-Aug-88 Daniel Julin (dpj) at Carnegie-Mellon University
42 * Replace sys/mach_ipc_netport.h with kern/ipc_netport.h. Sigh.
43 *
44 * 24-May-88 Daniel Julin (dpj) at Carnegie-Mellon University
45 * Replace mach_ipc_vmtp.h with mach_ipc_netport.h.
46 *
47 * 4-Sep-87 Daniel Julin (dpj) at Carnegie-Mellon University
48 * Fixed for new kernel include files which declare a lot
49 * of network server stuff internally, because of the NETPORT
50 * option.
51 *
52 * 5-Nov-86 Robert Sansom (rds) at Carnegie-Mellon University
53 * Started.
54 *
55 */
56
57#ifndef _NM_DEFS_
58#define _NM_DEFS_
59
60/*
61 * netaddr_t is declared with the kernel files,
62 * in <sys/netport.h>.
63 */
64#include <sys/netport.h>
65
66#ifdef notdef
67typedef unsigned long netaddr_t;
68#endif /* notdef */
69
70typedef union {
71 struct {
72 unsigned char ia_net_owner;
73 unsigned char ia_net_node_type;
74 unsigned char ia_host_high;
75 unsigned char ia_host_low;
76 } ia_bytes;
77 netaddr_t ia_netaddr;
78} ip_addr_t;
79
80#endif /* _NM_DEFS_ */
81