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