Home
last modified time | relevance | path

Searched refs:xp_rtaddr (Results 1 – 7 of 7) sorted by relevance

/freebsd/lib/libc/rpc/
H A Dsvc_dg.c140 xprt->xp_rtaddr.maxlen = sizeof (struct sockaddr_storage); in svc_dg_create()
264 if (xprt->xp_rtaddr.len < alen) { in svc_dg_recv()
265 if (xprt->xp_rtaddr.len != 0) in svc_dg_recv()
266 mem_free(xprt->xp_rtaddr.buf, xprt->xp_rtaddr.len); in svc_dg_recv()
267 xprt->xp_rtaddr.buf = mem_alloc(alen); in svc_dg_recv()
268 xprt->xp_rtaddr.len = alen; in svc_dg_recv()
270 memcpy(xprt->xp_rtaddr.buf, &ss, alen); in svc_dg_recv()
273 xprt->xp_raddr = *(struct sockaddr_in *)xprt->xp_rtaddr.buf; in svc_dg_recv()
356 (struct sockaddr *)xprt->xp_rtaddr.buf, in svc_dg_reply()
357 (socklen_t)xprt->xp_rtaddr.len, in svc_dg_reply()
[all …]
H A Dsvc_vc.c164 xprt->xp_rtaddr.maxlen = sizeof (struct sockaddr_storage); in svc_vc_create()
210 ret->xp_rtaddr.maxlen = ret->xp_rtaddr.len = ss.ss_len; in svc_fd_create()
211 ret->xp_rtaddr.buf = mem_alloc((size_t)ss.ss_len); in svc_fd_create()
212 if (ret->xp_rtaddr.buf == NULL) { in svc_fd_create()
216 memcpy(ret->xp_rtaddr.buf, &ss, (size_t)ss.ss_len); in svc_fd_create()
219 ret->xp_raddr = *(struct sockaddr_in *)ret->xp_rtaddr.buf; in svc_fd_create()
309 newxprt->xp_rtaddr.buf = mem_alloc(len); in rendezvous_request()
310 if (newxprt->xp_rtaddr.buf == NULL) in rendezvous_request()
312 memcpy(newxprt->xp_rtaddr.buf, &addr, len); in rendezvous_request()
313 newxprt->xp_rtaddr.len = len; in rendezvous_request()
[all …]
/freebsd/sys/rpc/
H A Dsvc.h168 struct sockaddr_storage xp_rtaddr; /* remote transport address */ member
200 struct netbuf xp_rtaddr; /* remote transport address */
292 (struct sockaddr *) &(rq)->rq_xprt->xp_rtaddr)
419 #define svc_getrpccaller(x) (&(x)->xp_rtaddr)
H A Dsvc_vc.c309 memcpy(&xprt->xp_rtaddr, raddr, raddr->sa_len); in svc_vc_create_conn()
1177 sa = (struct sockaddr *)transp->xp_rtaddr;
H A Dsvc.c774 &rply, (struct sockaddr *) &xprt->xp_rtaddr, NULL); in svcerr_decode()
/freebsd/include/rpc/
H A Dsvc.h119 struct netbuf xp_rtaddr; /* remote transport address */ member
163 #define svc_getrpccaller(x) (&(x)->xp_rtaddr)
/freebsd/usr.sbin/nfsuserd/
H A Dnfsuserd.c545 if (transp->xp_rtaddr.len < sizeof(*sin)) { in nfsuserdsrv()
550 sin = (struct sockaddr_in *)transp->xp_rtaddr.buf; in nfsuserdsrv()
572 if (transp->xp_rtaddr.len < sizeof(*sin6)) { in nfsuserdsrv()
577 sin6 = (struct sockaddr_in6 *)transp->xp_rtaddr.buf; in nfsuserdsrv()