75 static int read_vc(
void *,
void *,
int);
76 static int write_vc(
void *,
void *,
int);
113 switch (
ss->ss_family) {
160 goto cleanup_svc_vc_create;
170 goto cleanup_svc_vc_create;
184 goto cleanup_svc_vc_create;
189 goto cleanup_svc_vc_create;
193 cleanup_svc_vc_create:
245 if (
ret->xp_ltaddr.buf !=
NULL)
246 mem_free(
ret->xp_ltaddr.buf, rep->xp_ltaddr.maxlen);
275 memset(xprt, 0,
sizeof *xprt);
327 #ifndef __REACTOS__ // CVE-2018-14621 345 #ifdef __REACTOS__ // CVE-2018-14622 363 cd->recvsize =
r->recvsize;
364 cd->sendsize =
r->sendsize;
365 cd->maxrec =
r->maxrec;
368 if (
cd->maxrec != 0) {
374 if (
cd->recvsize >
cd->maxrec)
375 cd->recvsize =
cd->maxrec;
487 int milliseconds = 35 * 1000;
530 timeout.tv_usec = milliseconds * 1000;
598 for (cnt =
len; cnt > 0; cnt -=
i,
buf +=
i) {
609 if (
cd->nonblock &&
i != cnt) {
668 cd->x_id =
msg->rm_xid;
684 return ((*xdr_args)(&(((
struct cf_conn *)(xprt->
xp_p1))->xdrs),
702 return ((*xdr_args)(
xdrs, args_ptr));
721 msg->rm_xid =
cd->x_id;
731 static struct xp_ops ops;
732 static struct xp_ops2 ops2;
738 if (ops.xp_recv ==
NULL) {
756 static struct xp_ops ops;
757 static struct xp_ops2 ops2;
761 if (ops.xp_recv ==
NULL) {
824 struct timeval tv, tdiff, tmax;
838 if (!cleanblock && !
cd->nonblock)
u_int __rpc_get_t_size(int af, int proto, int size)
bool_t xdrrec_eof(XDR *xdrs)
bool_t __xdrrec_setnonblock(XDR *, int)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
static bool_t rendezvous_request(SVCXPRT *, struct rpc_msg *)
#define SVCGET_CONNMAXREC
static bool_t svc_vc_getargs(SVCXPRT *, xdrproc_t, void *)
GLdouble GLdouble GLdouble r
static struct cd_image cd
static bool_t svc_vc_recv(SVCXPRT *, struct rpc_msg *)
static enum xprt_stat rendezvous_stat(SVCXPRT *)
bool_t xdrrec_endofrecord(XDR *xdrs, bool_t sendnow)
void __xprt_unregister_unlocked(SVCXPRT *)
void xprt_unregister(SVCXPRT *xprt)
void __xprt_set_raddr(SVCXPRT *xprt, const struct sockaddr_storage *ss)
static SVCXPRT * makefd_xprt(SOCKET, u_int, u_int)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define gettimeofday(tv, tz)
bool_t(* xdrproc_t)(XDR *,...)
struct opaque_auth _null_auth
int __rpc_fd2sockinfo(SOCKET fd, struct __rpc_sockinfo *sip)
static bool_t svc_vc_control(SVCXPRT *xprt, const u_int rq, void *in)
#define FD_ISSET(fd, set)
INT WSAAPI select(IN INT s, IN OUT LPFD_SET readfds, IN OUT LPFD_SET writefds, IN OUT LPFD_SET exceptfds, IN CONST struct timeval *timeout)
int getpeereid(int s, uid_t *euid, gid_t *egid)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
char verf_body[MAX_AUTH_BYTES]
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
const struct __rpc_svcxprt::xp_ops * xp_ops
bool_t xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg)
INT WSAAPI getpeername(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
INT WSAAPI WSAGetLastError(VOID)
static bool_t svc_vc_freeargs(SVCXPRT *, xdrproc_t, void *)
INT WSAAPI send(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags)
int poll(struct pollfd *ufds, int nfds, int timeout)
void xprt_register(SVCXPRT *xprt)
static bool_t svc_vc_reply(SVCXPRT *, struct rpc_msg *)
struct netbuf * __rpc_set_netbuf(struct netbuf *, const void *, size_t)
static enum xprt_stat svc_vc_stat(SVCXPRT *)
struct sockaddr_in6 xp_raddr
GLenum const GLvoid * addr
#define memcpy(s1, s2, n)
static void svc_vc_rendezvous_ops(SVCXPRT *)
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
static int read_vc(void *, void *, int)
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
static void __svc_vc_dodestroy(SVCXPRT *)
struct timeval last_recv_time
int __rpc_sockinfo2netid(struct __rpc_sockinfo *, const char **)
static void svc_vc_destroy(SVCXPRT *)
#define timercmp(tvp, uvp, cmp)
struct opaque_auth xp_verf
static void svc_vc_ops(SVCXPRT *)
#define mem_free(ptr, bsize)
bool_t xdrrec_skiprecord(XDR *xdrs)
int __rpc_get_local_uid(SVCXPRT *transp, uid_t *uid)
bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t)
static int write_vc(void *, void *, int)
SVCXPRT * svc_fd_create(SOCKET fd, u_int sendsize, u_int recvsize)
#define SVCSET_CONNMAXREC
bool_t xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg)
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
SVCXPRT * svc_vc_create(int fd, u_int sendsize, u_int recvsize)
INT WSAAPI getsockname(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
static bool_t svc_vc_rendezvous_control(SVCXPRT *xprt, const u_int rq, void *in)
bool_t __svc_clean_idle(fd_set *fds, int timeout, bool_t cleanblock)
static struct sockaddr_in sa
#define XDR_DESTROY(xdrs)
void xdrrec_create(XDR *xdrs, u_int sendsize, u_int recvsize, int *void *, int *readit, int *writeit)
_CRTIMP int __cdecl read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
const struct __rpc_svcxprt::xp_ops2 * xp_ops2