rpc_msg.h (71d9c7815e7a209829578ebc30b63f6e0c64fcf2) rpc_msg.h (70de0abf48ea2d832e3445406155b521792b6d13)
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 14 unchanged lines hidden (view full) ---

23 * Sun has been advised of the possibility of such damages.
24 *
25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
28 *
29 * from: @(#)rpc_msg.h 1.7 86/07/16 SMI
30 * from: @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 14 unchanged lines hidden (view full) ---

23 * Sun has been advised of the possibility of such damages.
24 *
25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
28 *
29 * from: @(#)rpc_msg.h 1.7 86/07/16 SMI
30 * from: @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC
31 * $Id: rpc_msg.h,v 1.4 1995/05/30 04:55:25 rgrimes Exp $
31 * $Id: rpc_msg.h,v 1.5 1996/01/30 23:32:24 mpp Exp $
32 */
33
34/*
35 * rpc_msg.h
36 * rpc message definition
37 *
38 * Copyright (C) 1984, Sun Microsystems, Inc.
39 */

--- 43 unchanged lines hidden (view full) ---

83 * Note: there could be an error even though the request was
84 * accepted.
85 */
86struct accepted_reply {
87 struct opaque_auth ar_verf;
88 enum accept_stat ar_stat;
89 union {
90 struct {
32 */
33
34/*
35 * rpc_msg.h
36 * rpc message definition
37 *
38 * Copyright (C) 1984, Sun Microsystems, Inc.
39 */

--- 43 unchanged lines hidden (view full) ---

83 * Note: there could be an error even though the request was
84 * accepted.
85 */
86struct accepted_reply {
87 struct opaque_auth ar_verf;
88 enum accept_stat ar_stat;
89 union {
90 struct {
91 u_long low;
92 u_long high;
91 u_int32_t low;
92 u_int32_t high;
93 } AR_versions;
94 struct {
95 caddr_t where;
96 xdrproc_t proc;
97 } AR_results;
98 /* and many other null cases */
99 } ru;
100#define ar_results ru.AR_results
101#define ar_vers ru.AR_versions
102};
103
104/*
105 * Reply to an rpc request that was rejected by the server.
106 */
107struct rejected_reply {
108 enum reject_stat rj_stat;
109 union {
110 struct {
93 } AR_versions;
94 struct {
95 caddr_t where;
96 xdrproc_t proc;
97 } AR_results;
98 /* and many other null cases */
99 } ru;
100#define ar_results ru.AR_results
101#define ar_vers ru.AR_versions
102};
103
104/*
105 * Reply to an rpc request that was rejected by the server.
106 */
107struct rejected_reply {
108 enum reject_stat rj_stat;
109 union {
110 struct {
111 u_long low;
112 u_long high;
111 u_int32_t low;
112 u_int32_t high;
113 } RJ_versions;
114 enum auth_stat RJ_why; /* why authentication did not work */
115 } ru;
116#define rj_vers ru.RJ_versions
117#define rj_why ru.RJ_why
118};
119
120/*

--- 8 unchanged lines hidden (view full) ---

129#define rp_acpt ru.RP_ar
130#define rp_rjct ru.RP_dr
131};
132
133/*
134 * Body of an rpc request call.
135 */
136struct call_body {
113 } RJ_versions;
114 enum auth_stat RJ_why; /* why authentication did not work */
115 } ru;
116#define rj_vers ru.RJ_versions
117#define rj_why ru.RJ_why
118};
119
120/*

--- 8 unchanged lines hidden (view full) ---

129#define rp_acpt ru.RP_ar
130#define rp_rjct ru.RP_dr
131};
132
133/*
134 * Body of an rpc request call.
135 */
136struct call_body {
137 u_long cb_rpcvers; /* must be equal to two */
138 u_long cb_prog;
139 u_long cb_vers;
140 u_long cb_proc;
137 u_int32_t cb_rpcvers; /* must be equal to two */
138 u_int32_t cb_prog;
139 u_int32_t cb_vers;
140 u_int32_t cb_proc;
141 struct opaque_auth cb_cred;
142 struct opaque_auth cb_verf; /* protocol specific - provided by client */
143};
144
145/*
146 * The rpc message
147 */
148struct rpc_msg {
141 struct opaque_auth cb_cred;
142 struct opaque_auth cb_verf; /* protocol specific - provided by client */
143};
144
145/*
146 * The rpc message
147 */
148struct rpc_msg {
149 u_long rm_xid;
149 u_int32_t rm_xid;
150 enum msg_type rm_direction;
151 union {
152 struct call_body RM_cmb;
153 struct reply_body RM_rmb;
154 } ru;
155#define rm_call ru.RM_cmb
156#define rm_reply ru.RM_rmb
157};

--- 39 unchanged lines hidden ---
150 enum msg_type rm_direction;
151 union {
152 struct call_body RM_cmb;
153 struct reply_body RM_rmb;
154 } ru;
155#define rm_call ru.RM_cmb
156#define rm_reply ru.RM_rmb
157};

--- 39 unchanged lines hidden ---