2 * Copyright 2000, International Business Machines Corporation and others.
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
11 * rx_kcommon.h - Common kernel RX header for all system types.
15 #include <UKERNEL/rx_kcommon.h>
18 #ifndef _RX_KCOMMON_H_
19 #define _RX_KCOMMON_H_
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
{
32 typedef unsigned short etap_event_t
;
38 #if !defined(AFS_LINUX26_ENV)
41 #ifndef AFS_LINUX22_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 */
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)
56 #if !defined(AFS_HPUX110_ENV)
60 #if !defined(AFS_HPUX110_ENV)
63 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
64 #if defined(AFS_FBSD_ENV)
71 #endif /* AFS_FBSD_ENV */
72 #if defined(AFS_NBSD40_ENV)
76 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
77 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
79 #include "h/hashing.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"
95 #include "net/route.h"
97 #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV)
98 #include "netinet/in_systm.h"
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"
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"
114 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
117 #ifdef AFS_LINUX22_ENV
119 #include "h/netdevice.h"
120 #include "linux/if.h"
122 #if !defined(AFS_OBSD_ENV)
128 # include <sys/socket.h>
130 # include <net/if_var.h>
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 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV)
137 #include "rpc/types.h"
139 #include "afs/afs_osi.h"
140 #include "rx_kmutex.h"
141 #include "afs/lock.h"
144 #include "rx/rx_globals.h"
145 #include "afs/afs_stats.h"
147 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
148 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
149 # if defined(AFS_FBSD_ENV)
150 # include "machine/stdarg.h"
156 #include "afs/sysincludes.h"
157 #include "afsincludes.h"
159 #if defined(AFS_OBSD_ENV)
160 #include "afs/sysincludes.h"
161 #include "netinet/in_pcb.h"
164 #define MAXRXPORTS 20
165 typedef unsigned short rxk_ports_t
[MAXRXPORTS
];
166 typedef char *rxk_portRocks_t
[MAXRXPORTS
];
167 extern rxk_ports_t rxk_ports
;
168 extern rxk_portRocks_t rxk_portRocks
;
170 #if defined(AFS_XBSD_ENV)
171 extern struct domain inetdomain
;
172 #endif /* AFS_XBSD_ENV */
174 #if defined(AFS_SUN510_ENV)
175 extern struct afs_ifinfo afsifinfo
[ADDRSPERSITE
];
178 #endif /* _RX_KCOMMON_H_ */