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)
69 #endif /* AFS_FBSD_ENV */
70 #if defined(AFS_NBSD40_ENV)
74 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
75 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
77 #include "h/hashing.h"
87 #include "h/signalvar.h"
88 #endif /* AFS_OBSD_ENV */
89 #include "netinet/in.h"
90 #ifdef AFS_LINUX22_ENV
91 #include "linux/route.h"
93 #include "net/route.h"
95 #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV)
96 #include "netinet/in_systm.h"
98 #include "netinet/ip.h"
99 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV)
100 #include "netinet/in_pcb.h"
101 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
102 #ifndef AFS_LINUX22_ENV
103 #if !defined(AFS_DARWIN_ENV)
104 #include "netinet/ip_var.h"
106 #include "netinet/ip_icmp.h"
107 #endif /* AFS_LINUX22_ENV */
108 #include "netinet/udp.h"
109 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
110 #include "netinet/udp_var.h"
112 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
115 #ifdef AFS_LINUX22_ENV
117 #if defined(HAVE_LINUX_FREEZER_H)
118 #include "h/freezer.h"
120 #include "h/netdevice.h"
121 #include "linux/if.h"
123 #if !defined(AFS_OBSD_ENV)
129 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
130 #include "netinet/in_var.h"
131 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
132 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV)
133 #include "rpc/types.h"
135 #include "afs/afs_osi.h"
136 #include "rx_kmutex.h"
137 #include "afs/lock.h"
140 #include "rx/rx_globals.h"
141 #include "afs/afs_stats.h"
143 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
144 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
148 #include "afs/sysincludes.h"
149 #include "afsincludes.h"
151 #if defined(AFS_OBSD_ENV)
152 #include "afs/sysincludes.h"
153 #include "netinet/in_pcb.h"
156 #define MAXRXPORTS 20
157 typedef unsigned short rxk_ports_t[MAXRXPORTS];
158 typedef char *rxk_portRocks_t[MAXRXPORTS];
159 extern rxk_ports_t rxk_ports;
160 extern rxk_portRocks_t rxk_portRocks;
162 #if defined(AFS_XBSD_ENV)
163 extern struct domain inetdomain;
164 #endif /* AFS_XBSD_ENV */
166 #if defined(AFS_SUN510_ENV)
167 extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
170 #endif /* _RX_KCOMMON_H_ */