Home
last modified time | relevance | path

Searched refs:hostaddr (Results 1 – 3 of 3) sorted by relevance

/external/mdnsresponder/mDNSPosix/
DIdentify.c70 static mDNSAddr lastsrc, hostaddr, target; variable
132 hostaddr.type = mDNSAddrType_IPv4; // Prefer v4 target to v6 target, for now in InfoCallback()
133 hostaddr.ip.v4 = answer->rdata->u.ipv4; in InfoCallback()
141 if (!hostaddr.type) // Prefer v4 target to v6 target, for now in InfoCallback()
143 hostaddr.type = mDNSAddrType_IPv6; in InfoCallback()
144 hostaddr.ip.v6 = answer->rdata->u.ipv6; in InfoCallback()
303 hostaddr = target = zeroAddr; in main()
366 if (target.type == 0) target = hostaddr; // Make sure the services query is targeted in main()
/external/mdnsresponder/Clients/
Ddns-sd.c965 struct sockaddr_storage hostaddr; in RegisterProxyAddressRecord() local
966 getip(ip, &hostaddr); in RegisterProxyAddressRecord()
968 if (hostaddr.ss_family == AF_INET) in RegisterProxyAddressRecord()
970 …kDNSServiceType_A, kDNSServiceClass_IN, 4, &((struct sockaddr_in *)&hostaddr)->sin_addr, 240,… in RegisterProxyAddressRecord()
971 else if (hostaddr.ss_family == AF_INET6) in RegisterProxyAddressRecord()
973 …kDNSServiceType_AAAA, kDNSServiceClass_IN, 16, &((struct sockaddr_in6*)&hostaddr)->sin6_addr, 240,… in RegisterProxyAddressRecord()
/external/curl/lib/
Durl.c5181 struct Curl_dns_entry *hostaddr; in resolve_server() local
5193 hostaddr = calloc(1, sizeof(struct Curl_dns_entry)); in resolve_server()
5194 if(!hostaddr) in resolve_server()
5196 else if((hostaddr->addr = Curl_unix2addr(path)) != NULL) in resolve_server()
5197 hostaddr->inuse++; in resolve_server()
5206 free(hostaddr); in resolve_server()
5207 hostaddr = NULL; in resolve_server()
5219 &hostaddr, timeout_ms); in resolve_server()
5226 else if(!hostaddr) { in resolve_server()
5240 &hostaddr, timeout_ms); in resolve_server()
[all …]