Lines Matching refs:addr
550 struct dohaddr *a = &d->addr[d->numaddr]; in doh_store_a()
562 struct dohaddr *a = &d->addr[d->numaddr]; in doh_store_aaaa()
842 const struct dohaddr *a = &d->addr[i]; in doh_show()
856 msnprintf(ptr, len, "%s%02x%02x", j ? ":" : "", d->addr[i].ip.v6[j], in doh_show()
857 d->addr[i].ip.v6[j + 1]); in doh_show()
902 struct sockaddr_in *addr; in doh2ai() local
918 if(de->addr[i].type == DNS_TYPE_AAAA) { in doh2ai()
961 addr = (void *)ai->ai_addr; /* storage area for this info */ in doh2ai()
962 DEBUGASSERT(sizeof(struct in_addr) == sizeof(de->addr[i].ip.v4)); in doh2ai()
963 memcpy(&addr->sin_addr, &de->addr[i].ip.v4, sizeof(struct in_addr)); in doh2ai()
965 addr->sin_family = (short)addrtype; in doh2ai()
967 addr->sin_family = addrtype; in doh2ai()
969 addr->sin_port = htons((unsigned short)port); in doh2ai()
975 DEBUGASSERT(sizeof(struct in6_addr) == sizeof(de->addr[i].ip.v6)); in doh2ai()
976 memcpy(&addr6->sin6_addr, &de->addr[i].ip.v6, sizeof(struct in6_addr)); in doh2ai()