Lines Matching refs:peer
646 adt_do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock, in adt_do_ipv6_address() argument
650 adt_ports_to_at_port(peer->sin6_port, sock->sin6_port); in adt_do_ipv6_address()
652 (void) memcpy(termid->at_addr, &peer->sin6_addr, 4 * sizeof (uint_t)); in adt_do_ipv6_address()
656 adt_do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock, in adt_do_ipv4_address() argument
659 termid->at_port = adt_ports_to_at_port(peer->sin_port, sock->sin_port); in adt_do_ipv4_address()
661 termid->at_addr[0] = (uint32_t)peer->sin_addr.s_addr; in adt_do_ipv4_address()
677 struct sockaddr_in6 peer; in adt_load_termid() local
679 int peerlen = sizeof (peer); in adt_load_termid()
684 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen) in adt_load_termid()
702 if (peer.sin6_family == AF_INET6) { in adt_load_termid()
703 adt_do_ipv6_address(&peer, &sock, p_term); in adt_load_termid()
705 adt_do_ipv4_address((struct sockaddr_in *)&peer, in adt_load_termid()