Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/gssrpc
File: rpc_msg.h
/* @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC */
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright (c) 2010, Oracle America, Inc.
[2] Fix | Delete
*
[3] Fix | Delete
* All rights reserved.
[4] Fix | Delete
*
[5] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[6] Fix | Delete
* modification, are permitted provided that the following conditions are met:
[7] Fix | Delete
*
[8] Fix | Delete
* * Redistributions of source code must retain the above copyright
[9] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[10] Fix | Delete
*
[11] Fix | Delete
* * Redistributions in binary form must reproduce the above copyright
[12] Fix | Delete
* notice, this list of conditions and the following disclaimer in
[13] Fix | Delete
* the documentation and/or other materials provided with the
[14] Fix | Delete
* distribution.
[15] Fix | Delete
*
[16] Fix | Delete
* * Neither the name of the "Oracle America, Inc." nor the names of
[17] Fix | Delete
* its contributors may be used to endorse or promote products
[18] Fix | Delete
* derived from this software without specific prior written permission.
[19] Fix | Delete
*
[20] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
[21] Fix | Delete
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
[22] Fix | Delete
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
[23] Fix | Delete
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
[24] Fix | Delete
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
[25] Fix | Delete
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
[26] Fix | Delete
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
[27] Fix | Delete
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
[28] Fix | Delete
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
[29] Fix | Delete
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
[30] Fix | Delete
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[31] Fix | Delete
*/
[32] Fix | Delete
/* @(#)rpc_msg.h 1.7 86/07/16 SMI */
[33] Fix | Delete
[34] Fix | Delete
/*
[35] Fix | Delete
* rpc_msg.h
[36] Fix | Delete
* rpc message definition
[37] Fix | Delete
*/
[38] Fix | Delete
[39] Fix | Delete
#ifndef GSSRPC_RPC_MSG_H
[40] Fix | Delete
#define GSSRPC_RPC_MSG_H
[41] Fix | Delete
[42] Fix | Delete
GSSRPC__BEGIN_DECLS
[43] Fix | Delete
[44] Fix | Delete
#define RPC_MSG_VERSION ((uint32_t) 2)
[45] Fix | Delete
#define RPC_SERVICE_PORT ((u_short) 2048)
[46] Fix | Delete
[47] Fix | Delete
/*
[48] Fix | Delete
* Bottom up definition of an rpc message.
[49] Fix | Delete
* NOTE: call and reply use the same overall stuct but
[50] Fix | Delete
* different parts of unions within it.
[51] Fix | Delete
*/
[52] Fix | Delete
[53] Fix | Delete
enum msg_type {
[54] Fix | Delete
CALL=0,
[55] Fix | Delete
REPLY=1
[56] Fix | Delete
};
[57] Fix | Delete
[58] Fix | Delete
enum reply_stat {
[59] Fix | Delete
MSG_ACCEPTED=0,
[60] Fix | Delete
MSG_DENIED=1
[61] Fix | Delete
};
[62] Fix | Delete
[63] Fix | Delete
enum accept_stat {
[64] Fix | Delete
SUCCESS=0,
[65] Fix | Delete
PROG_UNAVAIL=1,
[66] Fix | Delete
PROG_MISMATCH=2,
[67] Fix | Delete
PROC_UNAVAIL=3,
[68] Fix | Delete
GARBAGE_ARGS=4,
[69] Fix | Delete
SYSTEM_ERR=5
[70] Fix | Delete
};
[71] Fix | Delete
[72] Fix | Delete
enum reject_stat {
[73] Fix | Delete
RPC_MISMATCH=0,
[74] Fix | Delete
AUTH_ERROR=1
[75] Fix | Delete
};
[76] Fix | Delete
[77] Fix | Delete
/*
[78] Fix | Delete
* Reply part of an rpc exchange
[79] Fix | Delete
*/
[80] Fix | Delete
[81] Fix | Delete
/*
[82] Fix | Delete
* Reply to an rpc request that was accepted by the server.
[83] Fix | Delete
* Note: there could be an error even though the request was
[84] Fix | Delete
* accepted.
[85] Fix | Delete
*/
[86] Fix | Delete
struct accepted_reply {
[87] Fix | Delete
struct opaque_auth ar_verf;
[88] Fix | Delete
enum accept_stat ar_stat;
[89] Fix | Delete
union {
[90] Fix | Delete
struct {
[91] Fix | Delete
rpcvers_t low;
[92] Fix | Delete
rpcvers_t high;
[93] Fix | Delete
} AR_versions;
[94] Fix | Delete
struct {
[95] Fix | Delete
caddr_t where;
[96] Fix | Delete
xdrproc_t proc;
[97] Fix | Delete
} AR_results;
[98] Fix | Delete
/* and many other null cases */
[99] Fix | Delete
} ru;
[100] Fix | Delete
#define ar_results ru.AR_results
[101] Fix | Delete
#define ar_vers ru.AR_versions
[102] Fix | Delete
};
[103] Fix | Delete
[104] Fix | Delete
/*
[105] Fix | Delete
* Reply to an rpc request that was rejected by the server.
[106] Fix | Delete
*/
[107] Fix | Delete
struct rejected_reply {
[108] Fix | Delete
enum reject_stat rj_stat;
[109] Fix | Delete
union {
[110] Fix | Delete
struct {
[111] Fix | Delete
rpcvers_t low;
[112] Fix | Delete
rpcvers_t high;
[113] Fix | Delete
} RJ_versions;
[114] Fix | Delete
enum auth_stat RJ_why; /* why authentication did not work */
[115] Fix | Delete
} ru;
[116] Fix | Delete
#define rj_vers ru.RJ_versions
[117] Fix | Delete
#define rj_why ru.RJ_why
[118] Fix | Delete
};
[119] Fix | Delete
[120] Fix | Delete
/*
[121] Fix | Delete
* Body of a reply to an rpc request.
[122] Fix | Delete
*/
[123] Fix | Delete
struct reply_body {
[124] Fix | Delete
enum reply_stat rp_stat;
[125] Fix | Delete
union {
[126] Fix | Delete
struct accepted_reply RP_ar;
[127] Fix | Delete
struct rejected_reply RP_dr;
[128] Fix | Delete
} ru;
[129] Fix | Delete
#define rp_acpt ru.RP_ar
[130] Fix | Delete
#define rp_rjct ru.RP_dr
[131] Fix | Delete
};
[132] Fix | Delete
[133] Fix | Delete
/*
[134] Fix | Delete
* Body of an rpc request call.
[135] Fix | Delete
*/
[136] Fix | Delete
struct call_body {
[137] Fix | Delete
rpcvers_t cb_rpcvers; /* must be equal to two */
[138] Fix | Delete
rpcprog_t cb_prog;
[139] Fix | Delete
rpcvers_t cb_vers;
[140] Fix | Delete
rpcproc_t cb_proc;
[141] Fix | Delete
struct opaque_auth cb_cred;
[142] Fix | Delete
struct opaque_auth cb_verf; /* protocol specific - provided by client */
[143] Fix | Delete
};
[144] Fix | Delete
[145] Fix | Delete
/*
[146] Fix | Delete
* The rpc message
[147] Fix | Delete
*/
[148] Fix | Delete
struct rpc_msg {
[149] Fix | Delete
uint32_t rm_xid;
[150] Fix | Delete
enum msg_type rm_direction;
[151] Fix | Delete
union {
[152] Fix | Delete
struct call_body RM_cmb;
[153] Fix | Delete
struct reply_body RM_rmb;
[154] Fix | Delete
} ru;
[155] Fix | Delete
#define rm_call ru.RM_cmb
[156] Fix | Delete
#define rm_reply ru.RM_rmb
[157] Fix | Delete
};
[158] Fix | Delete
#define acpted_rply ru.RM_rmb.ru.RP_ar
[159] Fix | Delete
#define rjcted_rply ru.RM_rmb.ru.RP_dr
[160] Fix | Delete
[161] Fix | Delete
[162] Fix | Delete
/*
[163] Fix | Delete
* XDR routine to handle a rpc message.
[164] Fix | Delete
* xdr_callmsg(xdrs, cmsg)
[165] Fix | Delete
* XDR *xdrs;
[166] Fix | Delete
* struct rpc_msg *cmsg;
[167] Fix | Delete
*/
[168] Fix | Delete
extern bool_t xdr_callmsg(XDR *, struct rpc_msg *);
[169] Fix | Delete
[170] Fix | Delete
/*
[171] Fix | Delete
* XDR routine to pre-serialize the static part of a rpc message.
[172] Fix | Delete
* xdr_callhdr(xdrs, cmsg)
[173] Fix | Delete
* XDR *xdrs;
[174] Fix | Delete
* struct rpc_msg *cmsg;
[175] Fix | Delete
*/
[176] Fix | Delete
extern bool_t xdr_callhdr(XDR *, struct rpc_msg *);
[177] Fix | Delete
[178] Fix | Delete
/*
[179] Fix | Delete
* XDR routine to handle a rpc reply.
[180] Fix | Delete
* xdr_replymsg(xdrs, rmsg)
[181] Fix | Delete
* XDR *xdrs;
[182] Fix | Delete
* struct rpc_msg *rmsg;
[183] Fix | Delete
*/
[184] Fix | Delete
extern bool_t xdr_replymsg(XDR *, struct rpc_msg *);
[185] Fix | Delete
[186] Fix | Delete
/*
[187] Fix | Delete
* Fills in the error part of a reply message.
[188] Fix | Delete
* _seterr_reply(msg, error)
[189] Fix | Delete
* struct rpc_msg *msg;
[190] Fix | Delete
* struct rpc_err *error;
[191] Fix | Delete
*/
[192] Fix | Delete
/*
[193] Fix | Delete
* RENAMED: should be _seterr_reply or __seterr_reply if we can use
[194] Fix | Delete
* reserved namespace.
[195] Fix | Delete
*/
[196] Fix | Delete
extern void gssrpc__seterr_reply(struct rpc_msg *, struct rpc_err *);
[197] Fix | Delete
[198] Fix | Delete
/* XDR the MSG_ACCEPTED part of a reply message union */
[199] Fix | Delete
extern bool_t xdr_accepted_reply(XDR *, struct accepted_reply *);
[200] Fix | Delete
[201] Fix | Delete
/* XDR the MSG_DENIED part of a reply message union */
[202] Fix | Delete
extern bool_t xdr_rejected_reply(XDR *, struct rejected_reply *);
[203] Fix | Delete
GSSRPC__END_DECLS
[204] Fix | Delete
[205] Fix | Delete
#endif /* !defined(GSSRPC_RPC_MSG_H) */
[206] Fix | Delete
[207] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function