Lines Matching defs:sock
592 adt_do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock,
596 termid->at_port = ((peer->sin6_port<<16) | (sock->sin6_port));
602 adt_do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock,
606 termid->at_port = ((peer->sin_port<<16) | (sock->sin_port));
626 struct sockaddr_in6 sock;
628 int socklen = sizeof (sock);
644 /* get sock name */
645 if (getsockname(fd, (struct sockaddr *)&sock,
651 adt_do_ipv6_address(&peer, &sock, p_term);
654 (struct sockaddr_in *)&sock, p_term);