Home
last modified time | relevance | path

Searched refs:sin6 (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/netbsd/net/
Dgetnameinfo.c220 const struct sockaddr_in6 *sin6; local
221 sin6 = (const struct sockaddr_in6 *)(const void *)sa;
222 switch (sin6->sin6_addr.s6_addr[0]) {
224 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr))
226 else if (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr))
232 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
235 else if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
Dgetaddrinfo.c824 struct sockaddr_in6 *sin6; in explore_numeric_scope()
866 sin6 = (struct sockaddr_in6 *)(void *)cur->ai_addr; in explore_numeric_scope()
867 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { in explore_numeric_scope()
871 sin6->sin6_scope_id = scopeid; in explore_numeric_scope()
1044 ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, u_int32_t *scopeid) in ip6_str2scopeid() argument
1051 assert(sin6 != NULL); in ip6_str2scopeid()
1054 a6 = &sin6->sin6_addr; in ip6_str2scopeid()
/bionic/libc/netbsd/resolv/
Dres_init.c252 u[nserv].sin6.sin6_addr = in6addr_loopback; in __res_vinit()
254 u[nserv].sin6.sin6_addr = in6addr_any; in __res_vinit()
256 u[nserv].sin6.sin6_family = AF_INET6; in __res_vinit()
257 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT); in __res_vinit()
259 u[nserv].sin6.sin6_len = sizeof(struct sockaddr_in6); in __res_vinit()
805 size = sizeof(set->sin6); in res_setservers()
808 &set->sin6, size); in res_setservers()
811 &set->sin6, size); in res_setservers()
853 size = sizeof(set->sin6); in res_getservers()
855 memcpy(&set->sin6, in res_getservers()
[all …]
Dres_send.c161 struct sockaddr_in6 sin6; member
180 u.sin6.sin6_family = family; in random_bind()
181 slen = sizeof u.sin6; in random_bind()
195 u.sin6.sin6_port = htons(port); in random_bind()
206 u.sin6.sin6_port = 0; in random_bind()
Dres_debug.c681 inet_ntop(AF_INET6, &u.sin6.sin6_addr, ret, sizeof ret); in p_sockun()
/bionic/libc/private/
Dresolv_private.h196 struct sockaddr_in6 sin6; member