*
* from: @(#)rpc_msg.h 1.7 86/07/16 SMI
* from: @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC
- * $Id: rpc_msg.h,v 1.2 1999/10/14 21:56:54 wsanchez Exp $
+ * $Id: rpc_msg.h,v 1.3 2004/10/28 21:58:24 emoy Exp $
*/
/*
#ifndef _RPC_RPCMSG_H
#define _RPC_RPCMSG_H
-#define RPC_MSG_VERSION ((u_long) 2)
-#define RPC_SERVICE_PORT ((u_short) 2048)
+#ifdef __LP64__
+#define RPC_MSG_VERSION ((unsigned int) 2)
+#else
+#define RPC_MSG_VERSION ((unsigned long) 2)
+#endif
+#define RPC_SERVICE_PORT ((unsigned short) 2048)
/*
* Bottom up definition of an rpc message.
enum accept_stat ar_stat;
union {
struct {
- u_long low;
- u_long high;
+#ifdef __LP64__
+ unsigned int low;
+ unsigned int high;
+#else
+ unsigned long low;
+ unsigned long high;
+#endif
} AR_versions;
struct {
caddr_t where;
enum reject_stat rj_stat;
union {
struct {
- u_long low;
- u_long high;
+#ifdef __LP64__
+ unsigned int low;
+ unsigned int high;
+#else
+ unsigned long low;
+ unsigned long high;
+#endif
} RJ_versions;
enum auth_stat RJ_why; /* why authentication did not work */
} ru;
* Body of an rpc request call.
*/
struct call_body {
- u_long cb_rpcvers; /* must be equal to two */
- u_long cb_prog;
- u_long cb_vers;
- u_long cb_proc;
+#ifdef __LP64__
+ unsigned int cb_rpcvers; /* must be equal to two */
+ unsigned int cb_prog;
+ unsigned int cb_vers;
+ unsigned int cb_proc;
+#else
+ unsigned long cb_rpcvers; /* must be equal to two */
+ unsigned long cb_prog;
+ unsigned long cb_vers;
+ unsigned long cb_proc;
+#endif
struct opaque_auth cb_cred;
struct opaque_auth cb_verf; /* protocol specific - provided by client */
};
* The rpc message
*/
struct rpc_msg {
- u_long rm_xid;
+#ifdef __LP64__
+ unsigned int rm_xid;
+#else
+ unsigned long rm_xid;
+#endif
enum msg_type rm_direction;
union {
struct call_body RM_cmb;