Lines Matching refs:addrlen
155 ksocket_bind_helper(int fd, struct sockaddr *addr, uint_t addrlen)
161 ksocket_bind(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen,
172 if (bind(KSTOSO(ks), addr, addrlen) != 0)
176 err = ksocket_bind_helper(KSTOSO(ks), addr, addrlen);
224 ksocket_connect(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen,
233 if (connect(KSTOSO(ks), addr, addrlen) != 0)
473 ksocket_getsockname(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlen,
482 if (addrlen == NULL || (addr == NULL && *addrlen != 0))
485 if (getsockname(KSTOSO(ks), addr, addrlen) != 0)
492 ksocket_getpeername(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlen,
501 if (addrlen == NULL || (addr == NULL && *addrlen != 0))
504 if (getpeername(KSTOSO(ks), addr, addrlen) != 0)