Lines Matching refs:addr6
69 struct sockaddr_in6 addr6;
89 static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int scopeid,
99 struct sockaddr_in6 *addr6 = NULL;
113 addr6 = (struct sockaddr_in6 *)sa;
114 port = addr6->sin6_port;
158 ares_inet_ntop(AF_INET6, &addr6->sin6_addr, ipbuf, IPBUFSIZ);
161 append_scopeid(addr6, flags, ipbuf, sizeof(ipbuf));
199 memcpy(&niquery->addr.addr6, addr6, sizeof(struct ares_in6_addr));
200 ares_gethostbyaddr(channel, &addr6->sin6_addr,
225 service = lookup_service(niquery->addr.addr6.sin6_port,
261 ares_inet_ntop(AF_INET6, &niquery->addr.addr6.sin6_addr, ipbuf,
264 append_scopeid(&niquery->addr.addr6, niquery->flags, ipbuf,
275 service = lookup_service(niquery->addr.addr6.sin6_port,
356 static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int flags,
366 const char *fmt = (sizeof(addr6->sin6_scope_id) > sizeof(unsigned int))?
372 is_ll = IN6_IS_ADDR_LINKLOCAL(&addr6->sin6_addr);
373 is_mcll = IN6_IS_ADDR_MC_LINKLOCAL(&addr6->sin6_addr);
377 sprintf(&tmpbuf[1], fmt, addr6->sin6_scope_id);
381 if (if_indextoname(addr6->sin6_scope_id, &tmpbuf[1]) == NULL)
382 sprintf(&tmpbuf[1], fmt, addr6->sin6_scope_id);
385 sprintf(&tmpbuf[1], fmt, addr6->sin6_scope_id);