Lines Matching refs:sock_addrp
1420 struct sockaddr *sock_addrp;
1435 sock_addrp = (struct sockaddr *)kmem_alloc(sock_addrlen, KM_SLEEP);
1437 if ((error = socket_getpeername(so, sock_addrp, &sock_addrlen,
1441 (void *)sock_addrp, sock_addrlen);
1443 kmem_free(sock_addrp, so->so_max_addr_len);
1457 struct sockaddr *sock_addrp;
1473 sock_addrp = (struct sockaddr *)kmem_alloc(sock_addrlen, KM_SLEEP);
1474 if ((error = socket_getsockname(so, sock_addrp, &sock_addrlen,
1479 (void *)sock_addrp, sock_addrlen);
1481 kmem_free(sock_addrp, so->so_max_addr_len);