summaryrefslogtreecommitdiffstats
path: root/include/rpc/rpc_msg.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-12-30 13:59:41 +0000
committerpeter <peter@FreeBSD.org>1996-12-30 13:59:41 +0000
commitbd9931aed2cc704a5fee1601e7e88458290fb6a8 (patch)
treee54774aa0d272e74f219465c79c216b63e03c952 /include/rpc/rpc_msg.h
parent7b950e65b2fd7b182f052a13da5c0465fb308334 (diff)
downloadFreeBSD-src-bd9931aed2cc704a5fee1601e7e88458290fb6a8.zip
FreeBSD-src-bd9931aed2cc704a5fee1601e7e88458290fb6a8.tar.gz
First commit of a series of cleanups for the libc rpc code which has been
suffering a bad case neglect for the last few years. - Add full prototypes, including to function pointers. - Make the wire protocols 64-bit type safe, eg: 32 bit quantities are int32_t, not long. The orginal rpc code was implemented when an int could be 16 bits. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
Diffstat (limited to 'include/rpc/rpc_msg.h')
-rw-r--r--include/rpc/rpc_msg.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h
index 43103bd..8fd3425 100644
--- a/include/rpc/rpc_msg.h
+++ b/include/rpc/rpc_msg.h
@@ -28,7 +28,7 @@
*
* 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.4 1995/05/30 04:55:25 rgrimes Exp $
+ * $Id: rpc_msg.h,v 1.5 1996/01/30 23:32:24 mpp Exp $
*/
/*
@@ -88,8 +88,8 @@ struct accepted_reply {
enum accept_stat ar_stat;
union {
struct {
- u_long low;
- u_long high;
+ u_int32_t low;
+ u_int32_t high;
} AR_versions;
struct {
caddr_t where;
@@ -108,8 +108,8 @@ struct rejected_reply {
enum reject_stat rj_stat;
union {
struct {
- u_long low;
- u_long high;
+ u_int32_t low;
+ u_int32_t high;
} RJ_versions;
enum auth_stat RJ_why; /* why authentication did not work */
} ru;
@@ -134,10 +134,10 @@ struct reply_body {
* 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;
+ u_int32_t cb_rpcvers; /* must be equal to two */
+ u_int32_t cb_prog;
+ u_int32_t cb_vers;
+ u_int32_t cb_proc;
struct opaque_auth cb_cred;
struct opaque_auth cb_verf; /* protocol specific - provided by client */
};
@@ -146,7 +146,7 @@ struct call_body {
* The rpc message
*/
struct rpc_msg {
- u_long rm_xid;
+ u_int32_t rm_xid;
enum msg_type rm_direction;
union {
struct call_body RM_cmb;
OpenPOWER on IntegriCloud