57 #define RQCRED_SIZE 400 59 #define SVC_VERSQUIET 0x0001 60 #define version_keepquiet(xp) ((u_long)(xp)->xp_p3 & SVC_VERSQUIET) 63 #define max(a, b) (a > b ? a : b) 250 &((
SVCXPRT *) xprt)->xp_ltaddr);
383 if (((
s->sc_prog ==
prog) && (
s->sc_vers == vers)) &&
384 ((netid ==
NULL) || (
s->sc_netid ==
NULL) ||
385 (
strcmp (netid,
s->sc_netid) == 0)))
410 rply.acpted_rply.ar_verf = xprt->
xp_verf;
411 rply.acpted_rply.ar_stat =
SUCCESS;
412 rply.acpted_rply.ar_results.where = xdr_location;
413 rply.acpted_rply.ar_results.proc = xdr_results;
430 rply.acpted_rply.ar_verf = xprt->
xp_verf;
448 rply.acpted_rply.ar_verf = xprt->
xp_verf;
466 rply.acpted_rply.ar_verf = xprt->
xp_verf;
479 __svc_versquiet_on (xprt)
489 __svc_versquiet_off (xprt)
502 __svc_versquiet_on (xprt);
506 __svc_versquiet_get (xprt)
528 rply.rjcted_rply.rj_why = why;
558 rply.acpted_rply.ar_verf = xprt->
xp_verf;
578 rply.acpted_rply.ar_verf = xprt->
xp_verf;
580 rply.acpted_rply.ar_vers.low = (
u_int32_t) low_vers;
581 rply.acpted_rply.ar_vers.high = (
u_int32_t) high_vers;
620 fd_mask
mask, *maskp;
625 maskp = readfds->fds_bits;
628 for (
mask = *maskp++; (bit =
ffs (
mask)) != 0;
mask ^= (1 << (bit - 1)))
652 msg.rm_call.cb_cred.oa_base = cred_area;
673 r.rq_prog =
msg.rm_call.cb_prog;
674 r.rq_vers =
msg.rm_call.cb_vers;
675 r.rq_proc =
msg.rm_call.cb_proc;
676 r.rq_cred =
msg.rm_call.cb_cred;
689 if (
s->sc_prog ==
r.rq_prog)
691 if (
s->sc_vers ==
r.rq_vers)
693 (*
s->sc_dispatch) (&
r, xprt);
697 if (
s->sc_vers < low_vers)
698 low_vers =
s->sc_vers;
699 if (
s->sc_vers > high_vers)
700 high_vers =
s->sc_vers;
733 #ifdef HAVE_LIBGSSAPI
752 for (
i = fds_found = 0; fds_found < pollretval;
i++)
bool_t rpc_control(int what, void *arg)
void svcerr_decode(SVCXPRT *xprt)
void __xprt_unregister_unlocked(SVCXPRT *xprt)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
#define RPC_SVC_CONNMAXREC_GET
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
GLdouble GLdouble GLdouble r
static struct svc_callout * svc_head
void xprt_unregister(SVCXPRT *xprt)
bool_t(* xdrproc_t)(XDR *,...)
void svc_unreg(rpcprog_t prog, const rpcvers_t vers) const
void svcerr_weakauth(SVCXPRT *xprt)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
void(* sc_dispatch)(struct svc_req *, SVCXPRT *)
void freenetconfigent(struct netconfig *netconfigp)
bool_t svc_sendreply(SVCXPRT *xprt, xdrproc_t xdr_results, void *xdr_location)
bool_t rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address)
#define SVC_DESTROY(xprt)
struct netconfig * __rpcgettp(SOCKET)
void svcerr_progvers(SVCXPRT *xprt, rpcvers_t low_vers, rpcvers_t high_vers)
__BEGIN_DECLS bool_t svc_register(SVCXPRT *, u_long, u_long, void(*)(struct svc_req *, SVCXPRT *), int)
__END_DECLS __BEGIN_DECLS void svc_unregister(u_long, u_long)
void xprt_register(SVCXPRT *xprt)
bool_t rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf)
void svc_getreqset(fd_set *readfds)
void svc_getreq_poll(struct pollfd *pfdp, int pollretval)
struct svc_auth_ops svc_auth_gss_ops
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
struct __svcauth::svc_auth_ops * svc_ah_ops
enum auth_stat _authenticate(struct svc_req *rqst, struct rpc_msg *msg)
static void __xprt_do_unregister(SVCXPRT *xprt, bool_t dolock)
void dispatch(HANDLE hStopEvent)
#define SVC_RECV(xprt, msg)
bool_t pmap_unset(u_long program, u_long version)
void svcerr_systemerr(SVCXPRT *xprt)
_CRTIMP int __cdecl stat(const char *_Filename, struct stat *_Stat)
void svcerr_noprog(SVCXPRT *xprt)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
bool_t svc_reg(SVCXPRT *xprt, const rpcprog_t prog, const rpcvers_t vers, void *dispatch, const struct netconfig *nconf)
void svc_getreq(int rdfds)
void svc_getreq_common(SOCKET fd)
struct svc_callout * sc_next
struct opaque_auth xp_verf
int strcmp(const char *String1, const char *String2)
#define mem_free(ptr, bsize)
#define RPC_SVC_CONNMAXREC_SET
enum msg_type rm_direction
#define SVC_REPLY(xprt, msg)
void svcerr_auth(SVCXPRT *xprt, enum auth_stat why)
static struct svc_callout * svc_find(rpcprog_t, rpcvers_t, struct svc_callout **, char *)
void svcerr_noproc(SVCXPRT *xprt)
bool_t pmap_set(u_long program, u_long version, int protocol, int port)