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_
22 #ifndef _LINUX_CODA_FS_I
23 #define _LINUX_CODA_FS_I 1
24 #define _CODA_HEADER_ 1
25 struct coda_inode_info {
32 #if !defined(AFS_LINUX_ENV)
40 #include "h/vfs.h" /* stops SUN5 socketvar.h warnings */
41 #include "h/stropts.h" /* stops SUN5 socketvar.h warnings */
42 #include "h/stream.h" /* stops SUN5 socketvar.h errors */
46 #if !defined(AFS_LINUX_ENV) && !defined(AFS_OBSD_ENV)
47 #include "h/socketvar.h"
48 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
50 #if !defined(AFS_HPUX110_ENV)
54 #if !defined(AFS_HPUX110_ENV)
57 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
58 #if defined(AFS_FBSD_ENV)
65 #endif /* AFS_FBSD_ENV */
66 #if defined(AFS_NBSD40_ENV)
70 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
71 #endif /* !defined(AFS_LINUX_ENV) && !defined(AFS_OBSD_ENV) */
73 #include "h/hashing.h"
83 #include "h/signalvar.h"
84 #endif /* AFS_OBSD_ENV */
85 #include "netinet/in.h"
87 #include "linux/route.h"
89 #include "net/route.h"
91 #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX_ENV)
92 #include "netinet/in_systm.h"
94 #include "netinet/ip.h"
95 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV)
96 #include "netinet/in_pcb.h"
97 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX_ENV */
99 #if !defined(AFS_DARWIN_ENV)
100 #include "netinet/ip_var.h"
102 #include "netinet/ip_icmp.h"
103 #endif /* AFS_LINUX_ENV */
104 #include "netinet/udp.h"
105 #if !defined(AFS_SGI_ENV) && !defined(AFS_LINUX_ENV) && !defined(AFS_DARWIN_ENV)
106 #include "netinet/udp_var.h"
108 #if defined(AFS_HPUX102_ENV)
113 #include "h/netdevice.h"
114 #include "linux/if.h"
116 #if !defined(AFS_OBSD_ENV)
122 # include <sys/socket.h>
124 # include <net/if_var.h>
127 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX_ENV) && !defined(AFS_DARWIN_ENV)
128 #include "netinet/in_var.h"
129 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX_ENV */
130 #include "afs/afs_osi.h"
131 #include "rx_kmutex.h"
132 #include "afs/lock.h"
135 #include "rx/rx_globals.h"
136 #include "afs/afs_stats.h"
138 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
139 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
140 # if defined(AFS_FBSD_ENV)
141 # include "machine/stdarg.h"
143 # if defined(HAVE_LINUX_STDARG_H)
144 # include "linux/stdarg.h"
151 #include "afs/sysincludes.h"
152 #include "afsincludes.h"
154 #if defined(AFS_OBSD_ENV)
155 #include "afs/sysincludes.h"
156 #include "netinet/in_pcb.h"
159 #define MAXRXPORTS 20
160 typedef unsigned short rxk_ports_t[MAXRXPORTS];
161 typedef char *rxk_portRocks_t[MAXRXPORTS];
162 extern rxk_ports_t rxk_ports;
163 extern rxk_portRocks_t rxk_portRocks;
165 #if defined(AFS_XBSD_ENV)
166 extern struct domain inetdomain;
167 #endif /* AFS_XBSD_ENV */
169 #if defined(AFS_SUN510_ENV)
170 extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
173 #endif /* _RX_KCOMMON_H_ */