afs_com_err(whoami, code, "Ubik init failed");
PT_EXIT(2);
}
+
#if defined(SUPERGROUPS)
pt_hook_write();
#endif
#include "rx/rx_kcommon.h"
+#include "rx/rx_packet.h"
#include "rx/rx_atomic.h"
#include "rx/rx_stats.h"
#include "rx_conn.h"
#include "rx_call.h"
+#include "rx_packet.h"
#include <afs/rxgen_consts.h>
#endif
#endif /* KERNEL */
+#include "rx_queue.h"
#include "rx_clock.h"
#include "rx_event.h"
-#include "rx_packet.h"
#include "rx_misc.h"
#include "rx_null.h"
#include "rx_multi.h"
/* These items are part of the new RX API. They're living in this section
* for now, to keep them separate from everything else... */
-/* Connection management */
struct rx_connection;
+struct rx_call;
+struct rx_packet;
+
+/* Connection management */
extern void rx_SetConnectionEpoch(struct rx_connection *conn, int epoch);
extern int rx_GetConnectionEpoch(struct rx_connection *conn);
int isServer);
+/* Packets */
+
+/* Packet classes, for rx_AllocPacket and rx_packetQuota */
+#define RX_PACKET_CLASS_RECEIVE 0
+#define RX_PACKET_CLASS_SEND 1
+#define RX_PACKET_CLASS_SPECIAL 2
+#define RX_PACKET_CLASS_RECV_CBUF 3
+#define RX_PACKET_CLASS_SEND_CBUF 4
+
+#define RX_N_PACKET_CLASSES 5 /* Must agree with above list */
+
+#define RX_PACKET_TYPES {"data", "ack", "busy", "abort", "ackall", "challenge", "response", "debug", "params", "unused", "unused", "unused", "version"}
+#define RX_N_PACKET_TYPES 13 /* Must agree with above list;
+ * counts 0
+ * WARNING: if this number ever
+ * grows past 13, rxdebug packets
+ * will need to be modified */
+
+
+/* For most Unixes, maximum elements in an iovec is 16 */
+#define RX_MAXIOVECS 16 /* limit for ReadvProc/WritevProc */
+#define RX_MAXWVECS (RX_MAXIOVECS-1) /* need one iovec for packet header */
+
/* Debugging */
/* Call flags, states and modes are exposed by the debug interface */
#endif
+
/* Configurable parameters */
#define RX_IDLE_DEAD_TIME 60 /* default idle dead time */
#define RX_MAX_SERVICES 20 /* Maximum number of services that may be installed */
#define RXS_SetConfiguration(obj, conn, type, value, currentValue) RXS_OP(obj, SetConfiguration,(obj,conn,type,value,currentValue))
+
/* Structure for keeping rx statistics. Note that this structure is returned
* by rxdebug, so, for compatibility reasons, new fields should be appended (or
* spares used), the rxdebug protocol checked, if necessary, and the PrintStats
# include <roken.h>
#endif /* KERNEL */
+#include "rx.h"
+#include "rx_clock.h"
+#include "rx_packet.h"
#include "rx_globals.h"
void rx_SetMaxReceiveWindow(int packets)
#include "rx/rx_kcommon.h"
+#include "rx_packet.h"
#include "rx_atomic.h"
#include "rx_stats.h"
#include "rx_atomic.h"
#include "rx_globals.h"
#include "rx_stats.h"
+#ifdef AFS_NT40_ENV
+#include "rx_xmit_nt.h"
+#endif
#define MAXTHREADNAMELENGTH 64
#endif
return -1;
}
- while ((err = select(socket + 1, 0, sfds, 0, 0)) != 1) {
+ while ((err = select(
+#ifdef AFS_NT40_ENV
+ 0,
+#else
+ socket + 1,
+#endif
+ 0, sfds, 0, 0)) != 1) {
if (err >= 0 || errno != EINTR)
osi_Panic("rxi_sendmsg: select error %d.%d", err, errno);
FD_ZERO(sfds);
#define RX_PACKET_TYPE_PARAMS 9 /* exchange size params (showUmine) */
#define RX_PACKET_TYPE_VERSION 13 /* get AFS version */
-
-#define RX_PACKET_TYPES {"data", "ack", "busy", "abort", "ackall", "challenge", "response", "debug", "params", "unused", "unused", "unused", "version"}
-#define RX_N_PACKET_TYPES 13 /* Must agree with above list;
- * counts 0
- * WARNING: if this number ever
- * grows past 13, rxdebug packets
- * will need to be modified */
-
-/* Packet classes, for rx_AllocPacket and rx_packetQuota */
-#define RX_PACKET_CLASS_RECEIVE 0
-#define RX_PACKET_CLASS_SEND 1
-#define RX_PACKET_CLASS_SPECIAL 2
-#define RX_PACKET_CLASS_RECV_CBUF 3
-#define RX_PACKET_CLASS_SEND_CBUF 4
-
-#define RX_N_PACKET_CLASSES 5 /* Must agree with above list */
-
/* Flags for rx_header flags field */
#define RX_CLIENT_INITIATED 1 /* Packet is sent/received from client side of call */
#define RX_REQUEST_ACK 2 /* Peer requests acknowledgement */
u_short cksum; /* packet header checksum */
};
-/* For most Unixes, maximum elements in an iovec is 16 */
-#define RX_MAXIOVECS 16 /* limit for ReadvProc/WritevProc */
-#define RX_MAXWVECS (RX_MAXIOVECS-1) /* need one iovec for packet header */
+
/*
* The values for the RX buffer sizes are calculated to ensure efficient
#include "rx_pthread.h"
#include "rx_clock.h"
#include "rx_atomic.h"
+#ifdef AFS_NT40_ENV
+#include "rx_xmit_nt.h"
+#endif
static void rxi_SetThreadNum(int threadID);
#include "rx_conn.h"
#include "rx_call.h"
+#include "rx_packet.h"
#ifdef RX_LOCKS_DB
/* rxdb_fileID is used to identify the lock location, along with line#. */
#include "rx_atomic.h"
#include "rx_globals.h"
#include "rx_stats.h"
+#include "rx_packet.h"
+
#ifdef AFS_PTHREAD_ENV
/*
#endif /* AFS_NT40_ENV */
#include "rx.h"
-#include "rx_packet.h"
#include "rx_globals.h"
+#include "rx_packet.h"
#include "rx_xmit_nt.h"
#include <malloc.h>
#include <errno.h>
#include <rx/rx.h>
#include <rx/rx_null.h>
#include <rx/rx_globals.h>
+#include <rx/rx_packet.h>
#ifdef AFS_PTHREAD_ENV
#include <pthread.h>
#else /* KERNEL */
#include <roken.h>
#include <rx/rx.h>
+#include <rx/rx_packet.h>
#endif /* KERNEL */
#include "fcrypt.h"
#endif /* KERNEL */
#include <rx/rx.h>
+#include <rx/rx_packet.h>
#include <rx/rxkad_stats.h>
#include "private_data.h"
#define XPRT_RXKAD_CRYPT
#include <rx/rx.h>
#include <rx/xdr.h>
+#include <rx/rx_packet.h>
#include "rxkad.h"
#include "stats.h"
#endif /* KERNEL */
#include <rx/rx.h>
+#include <rx/rx_packet.h>
#include <rx/xdr.h>
#include "stats.h"
#include <rx/rx.h>
#include <rx/xdr.h>
+#include <rx/rx_packet.h>
#include <afs/afsutil.h>
#include "stats.h"