71#define RPCB_OWNER_STRING "libtirpc"
86#define CLCR_GET_RPCB_TIMEOUT 1
87#define CLCR_SET_RPCB_TIMEOUT 2
151 const char *
host, *netid;
199 const char *
host, *netid;
283 struct netbuf addr_to_delete;
293 addr_to_delete.
len = 0;
298 if (ad_cache !=
NULL) {
308 addr_to_delete.
len =
addr->len;
310 if (addr_to_delete.
buf ==
NULL) {
311 addr_to_delete.
len = 0;
317 if (addr_to_delete.
len != 0) {
338 printf(
"trying netid %s family %d proto %d socktype %d\n",
385 for (
i = 0;
i < taddr.
len;
i++)
412#define IN4_LOCALHOST_STRING "127.0.0.1"
413#define IN6_LOCALHOST_STRING "::1"
436 memset(&sun, 0,
sizeof sun);
464 if (loopnconf ==
NULL) {
470 if (nc_handle ==
NULL) {
486 fd = __rpc_nconf2fd(nconf);
491 if (fd == SOCKET_ERROR)
495 if (!strcmp(nconf->nc_protofmly, NC_INET))
496 hostname = IN4_LOCALHOST_STRING;
498 hostname = IN6_LOCALHOST_STRING;
501 if (tmpnconf ==
NULL) {
621got_entry(relp, nconf)
630 rmap = &
sp->rpcb_entry_map;
641 "\tCouldn't resolve remote address!\n");
674 memset(&sun, 0,
sizeof sun);
749 struct pmap pmapparms;
793 }
else if (
port == 0) {
814 (
char *)(
void *)&
port,
sizeof (
short));
857 for (vers = start_vers; vers >=
RPCBVERS; vers--) {
864 if ((ua ==
NULL) || (ua[0] == 0)) {
874 "\tCouldn't resolve remote address!\n");
877 (
char *)(
void *)&ua);
885 (
char *)(
void *)&servaddr);
1028 xdrres, resp, tout, addr_ptr)
1037 const struct netbuf *addr_ptr;
1055 a.args.args_val = argsp;
1056 a.xdr_args = xdrargs;
1058 r.results.results_val = resp;
1073 ((
struct netbuf *) addr_ptr)->len = 0;
1082 ((
struct netbuf *) addr_ptr)->len = 0;
1087 ((
struct netbuf *)addr_ptr)->len = na->
len;
1179 if (nconf ==
NULL) {
1183 if (taddr ==
NULL) {
1213 if (nconf ==
NULL) {
1217 if (uaddr ==
NULL) {
1227 if (taddr ==
NULL) {
bool_t xdr_bool(XDR *xdrs, bool_t *bp)
bool_t xdr_u_short(XDR *xdrs, u_short *usp)
void xdr_free(xdrproc_t proc, void *objp)
bool_t xdr_int(XDR *xdrs, int *ip)
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
char * strcpy(char *DstString, const char *SrcString)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
struct outqueuenode * head
#define CLSET_RETRY_TIMEOUT
#define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs)
#define CLNT_CONTROL(cl, rq, in)
#define clnt_geterr(rh, errp)
CLIENT * clnt_tli_create(const SOCKET fd_in, const struct netconfig *nconf, struct netbuf *svcaddr, const rpcprog_t prog, const rpcvers_t vers, const uint sendsz, const uint recvsz, int(*callback_xdr)(void *, void *), int(*callback_function)(void *, void *, void **), void *callback_args)
void clnt_pcreateerror(char *s) const
CLIENT * clnt_vc_create(int fd, const struct netbuf *raddr, const rpcprog_t prog, const rpcvers_t vers, u_int sendsz, u_int recvsz, int *cb_xdr, int *cb_fn, void *cb_args)
static const WCHAR version[]
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
void freenetconfigent(struct netconfig *netconfigp)
int endnetconfig(void *handlep)
struct netconfig * getnetconfigent(char *netid) const
struct netconfig * getnetconfig(void *handlep)
GLdouble GLdouble GLdouble r
GLenum const GLvoid * addr
GLboolean GLboolean GLboolean GLboolean a
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
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
#define memcpy(s1, s2, n)
bool_t xdr_pmap(XDR *xdrs, struct pmap *regs)
void * __rpc_setconf(char *nettype) const
u_int __rpc_get_t_size(int af, int proto, int size)
char * taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf)
struct netconfig * __rpc_getconf(void *vhandle)
void __rpc_endconf(void *vhandle)
int __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
struct netbuf * uaddr2taddr(const struct netconfig *nconf, const char *uaddr)
bool_t rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf)
int rpcb_getaddr(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, struct netbuf *address, const char *host)
enum clnt_stat rpcb_rmtcall(struct netconfig *nconf, const char *host, rpcprog_t prog, rpcvers_t vers, rpcproc_t proc, xdrproc_t xdrargs, caddr_t argsp, xdrproc_t xdrres, caddr_t resp, struct timeval tout, const struct netbuf *addr_ptr) const
struct netbuf * __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const char *host, CLIENT **clpp, struct timeval *tp)
static struct timeval tottimeout
static const char nullstring[]
bool_t rpcb_gettime(char *host, time_t *timep) const
bool_t rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address)
#define CLCR_SET_RPCB_TIMEOUT
struct netbuf * rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr)
static void add_cache(const char *, const char *, struct netbuf *, char *)
static const struct timeval rmttimeout
static CLIENT * getclnthandle(const char *, const struct netconfig *, char **)
static struct address_cache * check_cache(const char *, const char *)
static void delete_cache(struct netbuf *)
static struct timeval rpcbrmttime
char * rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr)
bool_t __rpc_control(int request, void *info)
#define RPCB_OWNER_STRING
rwlock_t rpcbaddr_cache_lock
#define CLCR_GET_RPCB_TIMEOUT
static struct address_cache * front
static CLIENT * local_rpcb(void)
rpcblist * rpcb_getmaps(struct netconfig *nconf, const char *host) const
bool_t xdr_wrapstring(XDR *, char **)
bool_t xdr_netbuf(XDR *xdrs, struct netbuf *objp)
bool_t xdr_rpcb_rmtcallres(XDR *xdrs, struct rpcb_rmtcallres *p)
bool_t xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp)
bool_t xdr_rpcb(XDR *xdrs, RPCB *objp)
bool_t xdr_rpcb_rmtcallargs(XDR *xdrs, struct rpcb_rmtcallargs *p)
#define RPCBPROC_TADDR2UADDR
#define RPCBPROC_UADDR2TADDR
#define _PATH_RPCBINDSOCK
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
namespace GUID const ADDRINFOEXW * hints
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
int __rpc_fixup_addr(struct netbuf *, const struct netbuf *)
struct address_cache * ac_next
struct sockaddr * ai_addr
struct addrinfo * ai_next
unsigned long nc_semantics
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
bool_t(* xdrproc_t)(XDR *,...)