rx: Do not include linux/module.h
[openafs.git] / src / rx / rx_internal.h
1 /* Internal structures that are private to RX itself. These shouldn't be
2  * modified by library callers.
3  *
4  * Data structures that are visible to security layers, but not to
5  * customers of RX belong in rx_private.h, which is installed.
6  */
7
8 #ifdef AFS_RXERRQ_ENV
9 # if defined(AFS_LINUX26_ENV) || defined(AFS_USR_LINUX26_ENV)
10 #  include <linux/types.h>
11 #  include <linux/errqueue.h>
12 #  include <linux/icmp.h>
13 # endif
14 #endif
15
16 /* Globals that we don't want the world to know about */
17 extern rx_atomic_t rx_nWaiting;
18 extern rx_atomic_t rx_nWaited;
19
20 /* Prototypes for internal functions */
21
22 /* rx.c */
23 extern void rxi_PacketsUnWait(void);
24 extern void rxi_SetPeerMtu(struct rx_peer *peer, afs_uint32 host,
25                            afs_uint32 port, int mtu);
26 #ifdef AFS_RXERRQ_ENV
27 extern void rxi_ProcessNetError(struct sock_extended_err *err,
28                                 afs_uint32 addr, afs_uint16 port);
29 #endif
30 extern struct rx_peer *rxi_FindPeer(afs_uint32 host, u_short port,
31                                     struct rx_peer *origPeer, int create);
32 extern struct rx_packet *rxi_ReceivePacket(struct rx_packet *np,
33                                            osi_socket socket, afs_uint32 host,
34                                            u_short port, int *tnop,
35                                            struct rx_call **newcallp);
36 extern int rxi_IsConnInteresting(struct rx_connection *aconn);
37 extern void rxi_PostDelayedAckEvent(struct rx_call *call, struct clock *now);
38 extern void rxi_ConnectionError(struct rx_connection *conn, afs_int32 error);
39 extern void rxi_Start(struct rx_call *call, int istack);
40 extern void rxi_Send(struct rx_call *call, struct rx_packet *p, int istack);
41 extern struct rx_packet *rxi_SendAck(struct rx_call *call,
42                                      struct rx_packet *optionalPacket,
43                                      int serial, int reason, int istack);
44 extern struct rx_packet *rxi_SendConnectionAbort(struct rx_connection *conn,
45                                                  struct rx_packet *packet,
46                                                  int istack, int force);
47 extern void rxi_IncrementTimeAndCount(struct rx_peer *peer,
48                                       afs_uint32 rxInterface,
49                                       afs_uint32 currentFunc,
50                                       afs_uint32 totalFunc,
51                                       struct clock *queueTime,
52                                       struct clock *execTime,
53                                       afs_uint64 bytesSent,
54                                       afs_uint64 bytesRcvd,
55                                       int isServer);
56
57 /* rx_packet.h */
58
59 extern int rxi_SendIovecs(struct rx_connection *conn, struct iovec *iov,
60                           int iovcnt, size_t length, int istack);
61 extern void rxi_SendRaw(struct rx_call *call, struct rx_connection *conn,
62                         int type, char *data, int bytes, int istack);