Lines Matching defs:peer
561 adt_do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock,
565 termid->at_port = ((peer->sin6_port<<16) | (sock->sin6_port));
567 (void) memcpy(termid->at_addr, &peer->sin6_addr, 4 * sizeof (uint_t));
571 adt_do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock,
575 termid->at_port = ((peer->sin_port<<16) | (sock->sin_port));
578 termid->at_addr[0] = (uint32_t)peer->sin_addr.s_addr;
594 struct sockaddr_in6 peer;
596 int peerlen = sizeof (peer);
599 /* get peer name if its a socket, else assume local terminal */
601 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen)
619 if (peer.sin6_family == AF_INET6) {
620 adt_do_ipv6_address(&peer, &sock, p_term);
622 adt_do_ipv4_address((struct sockaddr_in *)&peer,