Lines Matching defs:taddr
196 add_cache(const char *host, const char *netid, struct netbuf *taddr,
214 ad_cache->ac_taddr->len = ad_cache->ac_taddr->maxlen = taddr->len;
215 ad_cache->ac_taddr->buf = (char *) malloc(taddr->len);
225 memcpy(ad_cache->ac_taddr->buf, taddr->buf, taddr->len);
280 struct netbuf *addr, taddr;
368 taddr.buf = tres->ai_addr;
369 taddr.len = taddr.maxlen = tres->ai_addrlen;
375 ua = taddr2uaddr(nconf, &taddr);
386 taddr.len, taddr.maxlen);
388 for (i = 0; i < taddr.len; i++)
389 fprintf(stderr, "%u.", ((char *)(taddr.buf))[i]);
393 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr,
402 tmpaddr = targaddr ? taddr2uaddr(nconf, &taddr) : NULL;
403 add_cache(host, nconf->nc_netid, &taddr, tmpaddr);
1233 * Converts taddr to universal address. This routine should never
1237 rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr)
1248 if (taddr == NULL) {
1258 (xdrproc_t) xdr_netbuf, (char *)(void *)taddr,
1272 struct netbuf *taddr;
1289 taddr = (struct netbuf *)calloc(1, sizeof (struct netbuf));
1290 if (taddr == NULL) {
1296 (xdrproc_t) xdr_netbuf, (char *)(void *)taddr,
1298 free(taddr);
1299 taddr = NULL;
1302 return (taddr);