Lines Matching refs:addr6

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