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;
39 #ifndef AFS_LINUX22_ENV
44 #include "h/vfs.h" /* stops SUN56 socketvar.h warnings */
45 #include "h/stropts.h" /* stops SUN56 socketvar.h warnings */
46 #include "h/stream.h" /* stops SUN56 socketvar.h errors */
50 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV)
51 #include "h/socketvar.h"
52 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
54 #if !defined(AFS_HPUX110_ENV)
58 #if !defined(AFS_HPUX110_ENV)
61 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
62 #if defined(AFS_FBSD_ENV)
66 #if defined(AFS_FBSD50_ENV)
71 #endif /* AFS_FBSD_ENV */
72 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
73 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
75 #include "h/hashing.h"
85 #include "h/signalvar.h"
86 #endif /* AFS_OBSD_ENV */
87 #include "netinet/in.h"
88 #ifdef AFS_LINUX22_ENV
89 #include "linux/route.h"
91 #include "net/route.h"
93 #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV)
94 #include "netinet/in_systm.h"
96 #include "netinet/ip.h"
97 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV)
98 #include "netinet/in_pcb.h"
99 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
100 #ifndef AFS_LINUX22_ENV
101 #if !defined(AFS_DARWIN_ENV)
102 #include "netinet/ip_var.h"
104 #include "netinet/ip_icmp.h"
105 #endif /* AFS_LINUX22_ENV */
106 #include "netinet/udp.h"
107 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
108 #include "netinet/udp_var.h"
110 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
113 #ifdef AFS_LINUX22_ENV
115 #if defined(HAVE_LINUX_FREEZER_H)
116 #include "h/freezer.h"
118 #include "h/netdevice.h"
119 #include "linux/if.h"
121 #if !defined(AFS_OBSD_ENV)
127 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
128 #include "netinet/in_var.h"
129 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
130 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV)
131 #include "rpc/types.h"
133 #include "afs/afs_osi.h"
134 #include "rx_kmutex.h"
135 #include "afs/lock.h"
138 #include "rx/rx_globals.h"
139 #include "afs/afs_stats.h"
141 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
142 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
146 #include "afs/sysincludes.h"
147 #include "afsincludes.h"
149 #if defined(AFS_OBSD_ENV)
150 #include "afs/sysincludes.h"
151 #include "netinet/in_pcb.h"
154 #define MAXRXPORTS 20
155 typedef unsigned short rxk_ports_t[MAXRXPORTS];
156 typedef char *rxk_portRocks_t[MAXRXPORTS];
157 extern rxk_ports_t rxk_ports;
158 extern rxk_portRocks_t rxk_portRocks;
160 #if defined(AFS_XBSD_ENV)
161 extern struct domain inetdomain;
162 #endif /* AFS_XBSD_ENV */
164 #if defined(AFS_SUN510_ENV)
165 extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
168 #endif /* _RX_KCOMMON_H_ */