rx: Process ICMP unreachable errors
[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/module.h>
11 #  include <linux/types.h>
12 #  include <linux/errqueue.h>
13 #  include <linux/icmp.h>
14 # endif
15 #endif
16
17 /* Globals that we don't want the world to know about */
18 extern rx_atomic_t rx_nWaiting;
19 extern rx_atomic_t rx_nWaited;
20
21 /* Prototypes for internal functions */
22
23 /* rx.c */
24 extern void rxi_PacketsUnWait(void);
25 extern void rxi_SetPeerMtu(struct rx_peer *peer, afs_uint32 host,
26                            afs_uint32 port, int mtu);
27 #ifdef AFS_RXERRQ_ENV
28 extern void rxi_ProcessNetError(struct sock_extended_err *err,
29                                 afs_uint32 addr, afs_uint16 port);
30 #endif
31 extern struct rx_peer *rxi_FindPeer(afs_uint32 host, u_short port,
32                                     struct rx_peer *origPeer, int create);
33 extern struct rx_packet *rxi_ReceivePacket(struct rx_packet *np,
34                                            osi_socket socket, afs_uint32 host,
35                                            u_short port, int *tnop,
36                                            struct rx_call **newcallp);
37 extern int rxi_IsConnInteresting(struct rx_connection *aconn);
38 extern void rxi_PostDelayedAckEvent(struct rx_call *call, struct clock *now);
39 extern void rxi_ConnectionError(struct rx_connection *conn, afs_int32 error);
40 extern void rxi_Start(struct rx_call *call, int istack);
41 extern void rxi_Send(struct rx_call *call, struct rx_packet *p, int istack);
42 extern struct rx_packet *rxi_SendAck(struct rx_call *call,
43                                      struct rx_packet *optionalPacket,
44                                      int serial, int reason, int istack);
45 extern struct rx_packet *rxi_SendConnectionAbort(struct rx_connection *conn,
46                                                  struct rx_packet *packet,
47                                                  int istack, int force);
48 extern void rxi_IncrementTimeAndCount(struct rx_peer *peer,
49                                       afs_uint32 rxInterface,
50                                       afs_uint32 currentFunc,
51                                       afs_uint32 totalFunc,
52                                       struct clock *queueTime,
53                                       struct clock *execTime,
54                                       afs_uint64 bytesSent,
55                                       afs_uint64 bytesRcvd,
56                                       int isServer);
57
58 /* rx_packet.h */
59
60 extern int rxi_SendIovecs(struct rx_connection *conn, struct iovec *iov,
61                           int iovcnt, size_t length, int istack);
62 extern void rxi_SendRaw(struct rx_call *call, struct rx_connection *conn,
63                         int type, char *data, int bytes, int istack);