Lines Matching defs:local
689 union sockaddr_union local, remote;
694 l = sizeof(local);
695 if (getsockname(fd, &local.sa, &l) < 0)
702 switch (local.sa.sa_family) {
706 a = ntohl(local.in.sin_addr.s_addr),
713 ntohs(local.in.sin_port),
726 if (memcmp(&local.in6.sin6_addr, ipv4_prefix, sizeof(ipv4_prefix)) == 0 &&
729 *a = local.in6.sin6_addr.s6_addr+12,
736 ntohs(local.in6.sin6_port),
746 inet_ntop(AF_INET6, &local.in6.sin6_addr, a, sizeof(a)),
747 ntohs(local.in6.sin6_port),