Home
last modified time | relevance | path

Searched refs:hostaddr (Results 1 – 24 of 24) 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/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DSocketTransportService.java93 String hostaddr = address.getHostAddress(); in address() local
94 if (hostname.equals(hostaddr)) { in address()
96 result = "[" + hostaddr + "]"; in address()
98 result = hostaddr; in address()
/external/python/cpython2/Demo/sockets/
Dftp.py92 hostaddr = gethostbyname(hostname)
93 hbytes = string.splitfields(hostaddr, '.')
Dtelnet.py32 hostaddr = gethostbyname(host)
/external/libcups/scheduler/
Dauth.c394 con->http->hostaddr->addr.sa_family == AF_LOCAL && con->best) in cupsdAuthorize()
835 if (httpAddrFamily(con->http->hostaddr) == AF_LOCAL) in cupsdAuthorize()
1534 http_addr_t *hostaddr = httpGetAddress(con->http); in cupsdIsAuthorized() local
1595 if (httpAddrFamily(hostaddr) == AF_INET6) in cupsdIsAuthorized()
1601 address[0] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[0]); in cupsdIsAuthorized()
1602 address[1] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[1]); in cupsdIsAuthorized()
1603 address[2] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[2]); in cupsdIsAuthorized()
1604 address[3] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[3]); in cupsdIsAuthorized()
1608 if (con->http->hostaddr->addr.sa_family == AF_INET) in cupsdIsAuthorized()
1617 address[3] = ntohl(hostaddr->ipv4.sin_addr.s_addr); in cupsdIsAuthorized()
[all …]
Dcups-lpd.c91 http_addr_t hostaddr; /* Address of client */ in main() local
172 hostlen = sizeof(hostaddr); in main()
174 if (getpeername(0, (struct sockaddr *)&hostaddr, &hostlen)) in main()
181 httpAddrString(&hostaddr, hostip, sizeof(hostip)); in main()
184 httpAddrLookup(&hostaddr, hostname, sizeof(hostname)); in main()
189 if (hostaddr.addr.sa_family == AF_INET6) in main()
Dipp.c1283 !httpAddrLocalhost(con->http->hostaddr)) in add_job()
11374 !httpAddrLocalhost(con->http->hostaddr)) in validate_job()
/external/libcups/cups/
Drequest.c639 !httpAddrLocalhost(http->hostaddr) && !http->tls && in cupsSendRequest()
1003 …(httpAddrFamily(cg->http->hostaddr) != AF_LOCAL && cg->ipp_port != httpAddrPort(cg->http->hostaddr in _cupsConnect()
1005 cg->ipp_port != httpAddrPort(cg->http->hostaddr) || in _cupsConnect()
Dauth.c955 …p=%p) hostaddr=%s, hostname=\"%s\"", (void *)http, httpAddrString(http->hostaddr, filename, sizeof… in cups_local_auth()
961 if (!httpAddrLocalhost(http->hostaddr) && _cups_strcasecmp(http->hostname, "localhost") != 0) in cups_local_auth()
1047 if (http->hostaddr->addr.sa_family == AF_LOCAL && in cups_local_auth()
Dhttp-private.h254 http_addr_t *hostaddr; /* Current host address and port */ member
Dhttp-addr.c662 return (http->hostaddr); in httpGetAddress()
915 if (httpAddrLookup(http->hostaddr, temp, sizeof(temp))) in httpResolveHostname()
Dhttp.c164 http->hostaddr = &(http->addrlist->addr); in httpAcceptConnection()
166 if (httpAddrLocalhost(http->hostaddr)) in httpAcceptConnection()
169 httpAddrString(http->hostaddr, http->hostname, sizeof(http->hostname)); in httpAcceptConnection()
2373 http->hostaddr = NULL; in httpReconnect2()
2411 http->hostaddr = &(addr->addr); in httpReconnect2()
2433 httpAddrString(http->hostaddr, temp, sizeof(temp)), in httpReconnect2()
2434 httpAddrPort(http->hostaddr))); in httpReconnect2()
4409 httpAddrPort(http->hostaddr)) < 1) in http_send()
Dtls-boringssl.c377 if (httpAddrLocalhost(http->hostaddr)) in _httpTLSStart()
Dppd-util.c366 http_port = httpAddrPort(http->hostaddr); in cupsGetPPD3()
Ddest-localization.c378 port == httpAddrPort(http->hostaddr)) in cups_create_localizations()
Dtls-sspi.c949 if (httpAddrLocalhost(http->hostaddr)) in _httpTLSStart()
1238 if (httpAddrLocalhost(http->hostaddr))
Dadminutil.c132 cg->ipp_port != httpAddrPort(cg->http->hostaddr) || in cupsAdminGetServerSettings()
Ddest-options.c712 else if (httpAddrFamily(http->hostaddr) == AF_LOCAL) in cupsCopyDestInfo()
718 …tp->hostname, cg->server) && cg->server[0] != '/') || cg->ipp_port != httpAddrPort(http->hostaddr)) in cupsCopyDestInfo()
Dtls-gnutls.c1344 if (httpAddrLocalhost(http->hostaddr)) in _httpTLSStart()
Dtls-darwin.c1577 if (httpAddrLocalhost(http->hostaddr)) in _httpTLSStart()
/external/curl/lib/
Durl.c3131 struct Curl_dns_entry *hostaddr = NULL; local
3140 hostaddr = calloc(1, sizeof(struct Curl_dns_entry));
3141 if(!hostaddr)
3144 hostaddr->addr = Curl_unix2addr(unix_path, &longpath,
3146 if(!hostaddr->addr) {
3150 free(hostaddr);
3154 hostaddr->inuse++;
3155 conn->dns_entry = hostaddr;
3165 struct Curl_dns_entry *hostaddr = NULL; local
3180 &hostaddr, timeout_ms);
[all …]
/external/python/cpython2/Demo/threads/
Dtelnet.py36 hostaddr = gethostbyname(host)
/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/libcups/backend/
Dipp.c867 httpAddrString(http->hostaddr, addrname, sizeof(addrname)), in main()
868 httpAddrPort(http->hostaddr)); in main()
903 backendCheckSideChannel(snmp_fd, http->hostaddr); in main()
1577 backendCheckSideChannel(snmp_fd, http->hostaddr); in main()
1647 backendCheckSideChannel(snmp_fd, http->hostaddr); in main()
1785 backendCheckSideChannel(snmp_fd, http->hostaddr); in main()
1856 backendCheckSideChannel(snmp_fd, http->hostaddr); in main()
2017 backendCheckSideChannel(snmp_fd, http->hostaddr); in main()