Lines Matching defs:retaddr
224 * check). If 'retaddr' is non-NULL, the bound address is returned in it. The
229 tlx_bind(int fd, const struct netbuf *reqaddr, struct netbuf *retaddr, int qlen)
234 if (retaddr != NULL) { /* caller requests bound address be returned */
235 bret.addr.buf = retaddr->buf;
236 bret.addr.maxlen = retaddr->maxlen;
247 if (t_bind(fd, &breq, retaddr != NULL ? &bret : NULL) < 0)
250 if (retaddr != NULL)
251 retaddr->len = bret.addr.len;
315 struct netbuf *retaddr;
356 retaddr = &(rpc->netbuf);
361 retaddr = &netbuf;
367 if ((tlx_bind(fd, reqaddr, retaddr, qlen) == -1) ||
368 ((reqaddr != NULL) && !netbufs_equal(reqaddr, retaddr))) {