Lines Matching refs:addr

221 rpc_uaddr2port(int af, char *addr)  in rpc_uaddr2port()  argument
244 (void) strtoi(addr, &next); in rpc_uaddr2port()
260 next = addr; in rpc_uaddr2port()
311 put_inet_port(struct netbuf *addr, ushort_t port) in put_inet_port() argument
318 ((struct sockaddr_in *)(addr->buf))->sin_port = port; in put_inet_port()
322 put_inet6_port(struct netbuf *addr, ushort_t port) in put_inet6_port() argument
324 ((struct sockaddr_in6 *)(addr->buf))->sin6_port = port; in put_inet6_port()
328 put_loopback_port(struct netbuf *addr, char *port) in put_loopback_port() argument
340 if ((dot = strnrchr(addr->buf, '.', addr->len)) == (char *)NULL) in put_loopback_port()
343 newlen = (int)((dot - addr->buf + 1) + strlen(port)); in put_loopback_port()
344 if (newlen > addr->maxlen) { in put_loopback_port()
346 bcopy(addr->buf, newbuf, addr->len); in put_loopback_port()
347 kmem_free(addr->buf, addr->maxlen); in put_loopback_port()
348 addr->buf = newbuf; in put_loopback_port()
349 addr->len = addr->maxlen = newlen; in put_loopback_port()
350 dot = strnrchr(addr->buf, '.', addr->len); in put_loopback_port()
352 addr->len = newlen; in put_loopback_port()
362 loopb_u2t(const char *ua, struct netbuf *addr) in loopb_u2t() argument
369 if (addr->maxlen < stringlen) { in loopb_u2t()
370 grow_netbuf(addr, stringlen); in loopb_u2t()
374 transp = addr->buf; in loopb_u2t()
392 addr->len = (unsigned int)(transp - addr->buf); in loopb_u2t()
393 ASSERT(addr->len <= addr->maxlen); in loopb_u2t()
441 struct netbuf *addr, struct timeval tmo) in portmap_getport() argument
470 if (clnt_tli_kcreate(config, addr, PMAPPROG, in portmap_getport()
489 put_inet_port(addr, ntohs(port)); in portmap_getport()
509 struct netbuf *addr) in rpcbind_getaddr() argument
532 put_inet_port(addr, htons(PMAPPORT)); in rpcbind_getaddr()
544 put_inet6_port(addr, htons(PMAPPORT)); in rpcbind_getaddr()
546 ASSERT(strnrchr(addr->buf, '.', addr->len) != NULL); in rpcbind_getaddr()
554 put_loopback_port(addr, "rpc"); in rpcbind_getaddr()
583 if (clnt_tli_kcreate(config, addr, RPCBPROG, in rpcbind_getaddr()
628 put_inet_port(addr, ntohs(port)); in rpcbind_getaddr()
636 put_inet6_port(addr, ntohs(port)); in rpcbind_getaddr()
638 loopb_u2t(ua, addr); in rpcbind_getaddr()
654 status = portmap_getport(config, prog, vers, addr, tmo); in rpcbind_getaddr()