source: trunk/third/openafs/src/rx/rx_kcommon.h @ 18109

Revision 18109, 3.4 KB checked in by zacheiss, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18108, which included commits to RCS files with non-trunk default branches.
Line 
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#ifndef _RX_KCOMMON_H_
15#define _RX_KCOMMON_H_
16
17#ifdef AFS_DARWIN_ENV
18#ifndef _MACH_ETAP_H_
19#define _MACH_ETAP_H_
20typedef unsigned short                  etap_event_t;
21#endif
22#endif 
23#include "../h/types.h"
24#include "../h/param.h"
25#ifndef AFS_LINUX22_ENV
26#include "../h/systm.h"
27#endif
28#include "../h/time.h"
29#ifdef AFS_SUN56_ENV
30#include "../h/vfs.h"           /* stops SUN56 socketvar.h warnings */
31#include "../h/stropts.h"       /* stops SUN56 socketvar.h warnings */
32#include "../h/stream.h"        /* stops SUN56 socketvar.h errors */
33#endif
34#include "../h/socket.h"
35#ifndef AFS_LINUX22_ENV
36#include "../h/socketvar.h"
37#include "../h/protosw.h"
38#if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
39#include "../h/domain.h"
40#if !defined(AFS_HPUX110_ENV)
41#include "../h/dir.h"
42#endif
43#include "../h/buf.h"
44#include "../h/mbuf.h"
45#else
46#if defined(AFS_XBSD_ENV)
47#include "../h/dirent.h"
48#include "../h/socket.h"
49#include "../h/domain.h"
50#include "../h/buf.h"
51#include "../h/mbuf.h"
52#endif /* AFS_XBSD_ENV */
53#endif
54#endif /* AFS_LINUX22_ENV */
55#ifdef AFS_SGI62_ENV
56#include "../h/hashing.h"
57#endif
58#ifdef AFS_FBSD_ENV
59#include "../h/sysctl.h"
60#endif
61#include "../netinet/in.h"
62#include "../net/route.h"
63#include "../netinet/in_systm.h"
64#include "../netinet/ip.h"
65#if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
66#include "../netinet/in_pcb.h"
67#endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
68#ifndef AFS_LINUX22_ENV
69#if !defined(AFS_DARWIN60_ENV)
70#include "../netinet/ip_var.h"
71#endif
72#include "../netinet/ip_icmp.h"
73#endif /* AFS_LINUX22_ENV */
74#include "../netinet/udp.h"
75#if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
76#include "../netinet/udp_var.h"
77#endif
78#if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
79#include "../h/user.h"
80#endif
81#ifdef AFS_LINUX22_ENV
82#define _LINUX_CODA_FS_I
83struct coda_inode_info {};
84#include "../h/sched.h"
85#include "../h/netdevice.h"
86#else
87#include "../h/proc.h"
88#include "../h/file.h"
89#endif
90#include "../net/if.h"
91#if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
92#include "../netinet/in_var.h"
93#endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
94#ifndef AFS_LINUX22_ENV
95#include "../rpc/types.h"
96#endif
97#include "../afs/afs_osi.h"
98#include "../rx/rx_kmutex.h"
99#include "../afs/lock.h"
100#include "../rx/xdr.h"
101#include "../rx/rx.h"
102#include "../rx/rx_globals.h"
103#include "../afs/longc_procs.h"
104#include "../afs/afs_stats.h"
105#include "../h/errno.h"
106
107extern afs_int32 afs_termState;
108extern int (*rxk_GetPacketProc)(); /* set to packet allocation procedure */
109extern int (*rxk_PacketArrivalProc)();
110
111#define MAXRXPORTS  20
112typedef unsigned short rxk_ports_t[MAXRXPORTS];
113typedef char *rxk_portRocks_t[MAXRXPORTS];
114extern rxk_ports_t rxk_ports;
115extern rxk_portRocks_t rxk_portRocks;
116
117extern struct osi_socket *rxk_NewSocket(short aport);
118extern struct ifnet *rxi_FindIfnet();
119extern int rxi_FindIfMTU();
120
121extern int rxk_initDone;
122
123#if defined(AFS_XBSD_ENV)
124extern struct domain inetdomain;
125#endif /* AFS_XBSD_ENV */
126
127#endif /* _RX_KCOMMON_H_ */
Note: See TracBrowser for help on using the repository browser.