Commit | Line | Data |
---|---|---|
805e021f CE |
1 | /* |
2 | * Copyright 2000, International Business Machines Corporation and others. | |
3 | * All Rights Reserved. | |
4 | * | |
5 | * This software has been released under the terms of the IBM Public | |
6 | * License. For details, see the LICENSE file in the top-level source | |
7 | * directory or online at http://www.openafs.org/dl/license10.html | |
8 | */ | |
9 | ||
10 | /* | |
11 | * rx_kcommon.h - Common kernel RX header for all system types. | |
12 | */ | |
13 | ||
14 | #ifdef UKERNEL | |
15 | #include <UKERNEL/rx_kcommon.h> | |
16 | #else | |
17 | ||
18 | #ifndef _RX_KCOMMON_H_ | |
19 | #define _RX_KCOMMON_H_ | |
20 | ||
21 | #ifdef AFS_LINUX22_ENV | |
22 | #ifndef _LINUX_CODA_FS_I | |
23 | #define _LINUX_CODA_FS_I 1 | |
24 | #define _CODA_HEADER_ 1 | |
25 | struct coda_inode_info { | |
26 | }; | |
27 | #endif | |
28 | #endif | |
29 | #ifdef AFS_DARWIN_ENV | |
30 | #ifndef _MACH_ETAP_H_ | |
31 | #define _MACH_ETAP_H_ | |
32 | typedef unsigned short etap_event_t; | |
33 | #endif | |
34 | #endif | |
35 | ||
36 | ||
37 | #include "h/types.h" | |
38 | #if !defined(AFS_LINUX26_ENV) | |
39 | #include "h/param.h" | |
40 | #endif | |
41 | #ifndef AFS_LINUX22_ENV | |
42 | #include "h/systm.h" | |
43 | #endif | |
44 | #include "h/time.h" | |
45 | #ifdef AFS_SUN5_ENV | |
46 | #include "h/vfs.h" /* stops SUN5 socketvar.h warnings */ | |
47 | #include "h/stropts.h" /* stops SUN5 socketvar.h warnings */ | |
48 | #include "h/stream.h" /* stops SUN5 socketvar.h errors */ | |
49 | #include "h/disp.h" | |
50 | #endif | |
51 | #include "h/socket.h" | |
52 | #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) | |
53 | #include "h/socketvar.h" | |
54 | #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) | |
55 | #include "h/domain.h" | |
56 | #if !defined(AFS_HPUX110_ENV) | |
57 | #include "h/dir.h" | |
58 | #endif | |
59 | #include "h/buf.h" | |
60 | #if !defined(AFS_HPUX110_ENV) | |
61 | #include "h/mbuf.h" | |
62 | #endif | |
63 | #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */ | |
64 | #if defined(AFS_FBSD_ENV) | |
65 | #include "h/dirent.h" | |
66 | #include "h/socket.h" | |
67 | #include "h/domain.h" | |
68 | #include "h/bio.h" | |
69 | #include "h/buf.h" | |
70 | #include "h/mbuf.h" | |
71 | #endif /* AFS_FBSD_ENV */ | |
72 | #if defined(AFS_NBSD40_ENV) | |
73 | #include "h/buf.h" | |
74 | #include "h/mbuf.h" | |
75 | #endif | |
76 | #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */ | |
77 | #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */ | |
78 | #ifdef AFS_SGI62_ENV | |
79 | #include "h/hashing.h" | |
80 | #endif | |
81 | #ifdef AFS_FBSD_ENV | |
82 | #include "h/sysctl.h" | |
83 | #endif | |
84 | #ifdef AFS_OBSD_ENV | |
85 | #include "h/socket.h" | |
86 | #include "h/domain.h" | |
87 | #include "h/buf.h" | |
88 | #include "net/if.h" | |
89 | #include "h/signalvar.h" | |
90 | #endif /* AFS_OBSD_ENV */ | |
91 | #include "netinet/in.h" | |
92 | #ifdef AFS_LINUX22_ENV | |
93 | #include "linux/route.h" | |
94 | #else | |
95 | #include "net/route.h" | |
96 | #endif | |
97 | #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV) | |
98 | #include "netinet/in_systm.h" | |
99 | #endif | |
100 | #include "netinet/ip.h" | |
101 | #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV) | |
102 | #include "netinet/in_pcb.h" | |
103 | #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */ | |
104 | #ifndef AFS_LINUX22_ENV | |
105 | #if !defined(AFS_DARWIN_ENV) | |
106 | #include "netinet/ip_var.h" | |
107 | #endif | |
108 | #include "netinet/ip_icmp.h" | |
109 | #endif /* AFS_LINUX22_ENV */ | |
110 | #include "netinet/udp.h" | |
111 | #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) | |
112 | #include "netinet/udp_var.h" | |
113 | #endif | |
114 | #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV)) | |
115 | #include "h/user.h" | |
116 | #endif | |
117 | #ifdef AFS_LINUX22_ENV | |
118 | #include "h/sched.h" | |
119 | #include "h/netdevice.h" | |
120 | #include "linux/if.h" | |
121 | #else | |
122 | #if !defined(AFS_OBSD_ENV) | |
123 | #include "h/proc.h" | |
124 | #include "h/file.h" | |
125 | #endif | |
126 | #include "net/if.h" | |
127 | # ifdef AFS_FBSD_ENV | |
128 | # include <sys/socket.h> | |
129 | # include <net/if.h> | |
130 | # include <net/if_var.h> | |
131 | # endif | |
132 | #endif | |
133 | #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) | |
134 | #include "netinet/in_var.h" | |
135 | #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */ | |
136 | #include "afs/afs_osi.h" | |
137 | #include "rx_kmutex.h" | |
138 | #include "afs/lock.h" | |
139 | #include "rx/xdr.h" | |
140 | #include "rx/rx.h" | |
141 | #include "rx/rx_globals.h" | |
142 | #include "afs/afs_stats.h" | |
143 | #include "h/errno.h" | |
144 | #if !(defined(AFS_SUN5_ENV) && defined(KERNEL)) | |
145 | /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */ | |
146 | # if defined(AFS_FBSD_ENV) | |
147 | # include "machine/stdarg.h" | |
148 | # else | |
149 | # include "stdarg.h" | |
150 | # endif | |
151 | #endif | |
152 | #ifdef KERNEL | |
153 | #include "afs/sysincludes.h" | |
154 | #include "afsincludes.h" | |
155 | #endif | |
156 | #if defined(AFS_OBSD_ENV) | |
157 | #include "afs/sysincludes.h" | |
158 | #include "netinet/in_pcb.h" | |
159 | #endif | |
160 | ||
161 | #define MAXRXPORTS 20 | |
162 | typedef unsigned short rxk_ports_t[MAXRXPORTS]; | |
163 | typedef char *rxk_portRocks_t[MAXRXPORTS]; | |
164 | extern rxk_ports_t rxk_ports; | |
165 | extern rxk_portRocks_t rxk_portRocks; | |
166 | ||
167 | #if defined(AFS_XBSD_ENV) | |
168 | extern struct domain inetdomain; | |
169 | #endif /* AFS_XBSD_ENV */ | |
170 | ||
171 | #if defined(AFS_SUN510_ENV) | |
172 | extern struct afs_ifinfo afsifinfo[ADDRSPERSITE]; | |
173 | #endif | |
174 | ||
175 | #endif /* _RX_KCOMMON_H_ */ | |
176 | ||
177 | #endif |