/third_party/node/test/parallel/ |
H A D | test-url-parse-format.js | 25 hostname: 'evil-phisher', 36 hostname: 'evil-phisher', 49 hostname: 'evil-phisher', 61 hostname: 'evil-phisher', 72 hostname: 'www.example.com', 82 hostname: 'www.example.com', 92 hostname: 'www.example.com', 103 hostname: 'www.example.com', 114 hostname: 'www.example.com', 125 hostname [all...] |
H A D | test-url-format.js | 17 hostname: 'example.com', 26 hostname: 'example.com', 36 hostname: 'example.com', 46 hostname: 'example.com', 56 hostname: 'example.com', 66 hostname: 'example.com', 89 hostname: 'jabber.org' 94 hostname: '127.0.0.1', 101 hostname: 'foo', 107 hostname [all...] |
/third_party/ltp/testcases/kernel/containers/utsname/ |
H A D | utstest.c | 118 char hostname[HLEN], newhostname[HLEN], rhostname[HLEN]; in P1() local 130 gethostname(hostname, HLEN); in P1() 133 if (strcmp(hostname, rhostname) == 0) { in P1() 138 "test 1 (%s): hostname 1 %s, hostname 2 %s", in P1() 139 tsttype, hostname, rhostname); in P1() 141 gethostname(hostname, HLEN); in P1() 142 picknewhostname(hostname, newhostname); in P1() 157 "test 2 (%s) hostname 1 %s, hostname in P1() 228 char hostname[HLEN], newhostname[HLEN]; P2() local [all...] |
/third_party/node/lib/internal/dns/ |
H A D | promises.js | 82 this.reject(dnsException(err, 'getaddrinfo', this.hostname)); 95 this.reject(dnsException(err, 'getaddrinfo', this.hostname)); 117 * Creates a promise that resolves with the IP address of the given hostname. 119 * @param {string} hostname - The hostname to resolve. 120 * @param {boolean} all - Whether to resolve with all IP addresses for the hostname. 123 * @param {boolean} verbatim - Whether to use the hostname verbatim. 124 * @returns {Promise<DNSLookupResult | DNSLookupResult[]>} The IP address(es) of the hostname. 129 function createLookupPromise(family, hostname, all, hints, verbatim) { 131 if (!hostname) { [all...] |
/third_party/curl/lib/vtls/ |
H A D | hostcheck.c | 49 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() argument 54 return strncasecompare(hostname, pattern, hostlen); in pmatch() 58 * Match a hostname against a wildcard pattern. 81 static bool hostmatch(const char *hostname, in hostmatch() argument 90 DEBUGASSERT(hostname); in hostmatch() 93 /* normalize pattern and hostname by stripping off trailing dots */ in hostmatch() 94 if(hostname[hostlen-1]=='.') in hostmatch() 100 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch() 102 /* detect IP address as hostname and fail the match if so */ in hostmatch() 103 else if(Curl_host_is_ipnum(hostname)) in hostmatch() 127 Curl_cert_hostcheck(const char *match, size_t matchlen, const char *hostname, size_t hostlen) Curl_cert_hostcheck() argument [all...] |
/third_party/node/lib/ |
H A D | dns.js | 107 return this.callback(dnsException(err, 'getaddrinfo', this.hostname)); 118 return this.callback(dnsException(err, 'getaddrinfo', this.hostname)); 138 // lookup(hostname, [options,] callback) 140 function lookup(hostname, options, callback) { 147 if (hostname) { 148 validateString(hostname, 'hostname'); 194 if (!hostname) { 195 emitInvalidHostnameWarning(hostname); 204 const matchedFamily = isIP(hostname); [all...] |
H A D | url.js | 76 this.hostname = null; 146 function isIpv6Hostname(hostname) { 148 StringPrototypeCharCodeAt(hostname, 0) === CHAR_LEFT_SQUARE_BRACKET && 149 StringPrototypeCharCodeAt(hostname, hostname.length - 1) === 161 // - '@' since this could cause parts of the hostname to be confused with auth 162 // - '[' and ']' since this could cause a non-IPv6 hostname to be interpreted 281 // user@server is *always* interpreted as a hostname, and url 297 // there's a hostname. 300 // If there is an @ in the hostname, the [all...] |
H A D | tls.js | 280 exports.checkServerIdentity = function checkServerIdentity(hostname, cert) { 286 hostname = '' + hostname; 304 hostname = unfqdn(hostname); // Remove trailing dot for error messages. 306 if (net.isIP(hostname)) { 307 valid = ArrayPrototypeIncludes(ips, canonicalizeIP(hostname)); 309 reason = `IP: ${hostname} is not in the cert's list: ` + 312 const hostParts = splitHost(hostname); 319 `Host: ${hostname} [all...] |
/third_party/toybox/toys/lsb/ |
H A D | hostname.c | 0 /* hostname.c - Get/Set the hostname 5 * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/hostname.html 7 USE_HOSTNAME(NEWTOY(hostname, ">1bdsfF:[!bdsf]", TOYFLAG_BIN)) 11 bool "hostname" 14 usage: hostname [-bdsf] [-F FILENAME] [newname] 16 Get/set the current hostname. 18 -b Set hostname to 'localhost' if otherwise unset 21 -F Set hostname to contents of FILENAME 30 Show domain this system belongs to (same as hostname 43 char *hostname = toybuf, *dot; hostname_main() local [all...] |
/third_party/libuv/src/unix/ |
H A D | getaddrinfo.c | 103 err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo); in uv__getaddrinfo_work() 119 else if (req->hostname) in uv__getaddrinfo_done() 120 uv__free(req->hostname); in uv__getaddrinfo_done() 126 req->hostname = NULL; in uv__getaddrinfo_done() 141 const char* hostname, in uv_getaddrinfo() 152 if (req == NULL || (hostname == NULL && service == NULL)) in uv_getaddrinfo() 161 if (hostname != NULL) { in uv_getaddrinfo() 162 rc = uv__idna_toascii(hostname, in uv_getaddrinfo() 163 hostname + strlen(hostname), in uv_getaddrinfo() 138 uv_getaddrinfo(uv_loop_t* loop, uv_getaddrinfo_t* req, uv_getaddrinfo_cb cb, const char* hostname, const char* service, const struct addrinfo* hints) uv_getaddrinfo() argument [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | getaddrinfo.c | 103 err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo); in uv__getaddrinfo_work() 119 else if (req->hostname) in uv__getaddrinfo_done() 120 uv__free(req->hostname); in uv__getaddrinfo_done() 126 req->hostname = NULL; in uv__getaddrinfo_done() 141 const char* hostname, in uv_getaddrinfo() 152 if (req == NULL || (hostname == NULL && service == NULL)) in uv_getaddrinfo() 161 if (hostname != NULL) { in uv_getaddrinfo() 162 rc = uv__idna_toascii(hostname, in uv_getaddrinfo() 163 hostname + strlen(hostname), in uv_getaddrinfo() 138 uv_getaddrinfo(uv_loop_t* loop, uv_getaddrinfo_t* req, uv_getaddrinfo_cb cb, const char* hostname, const char* service, const struct addrinfo* hints) uv_getaddrinfo() argument [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
H A D | getnameinfo.c | 178 char hostname[128] = {0}; in getnameinfo_0900() local 187 ret = getnameinfo((struct sockaddr *)&addrDst, sizeof(addrDst), hostname, sizeof(hostname), in getnameinfo_0900() 190 EXPECT_STREQ("getnameinfo_0900 hostname", hostname, "localhost"); in getnameinfo_0900() 191 EXPECT_STREQ("getnameinfo_0900 hostname", servername, "http"); in getnameinfo_0900() 198 char hostname[128] = {0}; in getnameinfo_1000() local 207 ret = getnameinfo((struct sockaddr *)&addrDst, sizeof(addrDst), hostname, sizeof(hostname), in getnameinfo_1000() 210 EXPECT_STREQ("getnameinfo_1000 hostname", hostnam in getnameinfo_1000() 219 char hostname[128] = {0}; getnameinfo_1100() local 239 char hostname[128] = {0}; getnameinfo_1200() local [all...] |
/third_party/curl/lib/ |
H A D | hostip.c | 281 const char *hostname, in fetch_addr() 287 /* Create an entry id, based upon the hostname and port */ in fetch_addr() 288 size_t entry_len = create_hostcache_id(hostname, 0, port, in fetch_addr() 349 * it discovers the handle in the state WAITRESOLVE whether the hostname 352 * lookups for the same hostname requested by different handles. 361 const char *hostname, in Curl_fetch_addr() 369 dns = fetch_addr(data, hostname, port); in Curl_fetch_addr() 474 const char *hostname, in Curl_cache_addr() 492 hostlen = strlen(hostname); in Curl_cache_addr() 500 /* Create an entry id, based upon the hostname an in Curl_cache_addr() 280 fetch_addr(struct Curl_easy *data, const char *hostname, int port) fetch_addr() argument 360 Curl_fetch_addr(struct Curl_easy *data, const char *hostname, int port) Curl_fetch_addr() argument 472 Curl_cache_addr(struct Curl_easy *data, struct Curl_addrinfo *addr, const char *hostname, size_t hostlen, int port) Curl_cache_addr() argument 641 Curl_host_is_ipnum(const char *hostname) Curl_host_is_ipnum() argument 684 Curl_resolv(struct Curl_easy *data, const char *hostname, int port, bool allowDOH, struct Curl_dns_entry **entry) Curl_resolv() argument 892 Curl_resolv_timeout(struct Curl_easy *data, const char *hostname, int port, struct Curl_dns_entry **entry, timediff_t timeoutms) Curl_resolv_timeout() argument [all...] |
H A D | hostip4.c | 90 const char *hostname, in Curl_getaddrinfo() 102 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo() 104 infof(data, "Curl_ipv4_resolve_r failed for %s", hostname); in Curl_getaddrinfo() 121 struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, in Curl_ipv4_resolve_r() argument 145 (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai); in Curl_ipv4_resolve_r() 166 h = gethostbyname_r(hostname, in Curl_ipv4_resolve_r() 185 (void)gethostbyname_r(hostname, in Curl_ipv4_resolve_r() 252 res = gethostbyname_r(hostname, in Curl_ipv4_resolve_r() 287 h = gethostbyname((void *)hostname); in Curl_ipv4_resolve_r() 89 Curl_getaddrinfo(struct Curl_easy *data, const char *hostname, int port, int *waitp) Curl_getaddrinfo() argument
|
H A D | hostip.h | 67 /* hostname port number that resolved to addr. */ 69 /* hostname that resolved to addr. may be NULL (unix domain sockets). */ 70 char hostname[1]; member 73 bool Curl_host_is_ipnum(const char *hostname); 90 const char *hostname, 95 const char *hostname, int port, 122 const char *hostname, 138 struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, int port); 170 const char *hostname, 180 const char *hostname, size_ [all...] |
H A D | asyn-thread.c | 145 const char *hostname, int port, 167 char *hostname; /* hostname to resolve, Curl_async.hostname member 205 free(tsd->hostname); in destroy_thread_sync_data() 225 const char *hostname, in init_thread_sync_data() 262 /* Copying hostname string because original can be destroyed by parent in init_thread_sync_data() 265 tsd->hostname = strdup(hostname); in init_thread_sync_data() 266 if(!tsd->hostname) in init_thread_sync_data() 224 init_thread_sync_data(struct thread_data *td, const char *hostname, int port, const struct addrinfo *hints) init_thread_sync_data() argument 599 init_resolve_thread(struct Curl_easy *data, const char *hostname, int port, const struct addrinfo *hints) init_resolve_thread() argument 885 Curl_resolver_getaddrinfo(struct Curl_easy *data, const char *hostname, int port, int *waitp) Curl_resolver_getaddrinfo() argument 912 Curl_resolver_getaddrinfo(struct Curl_easy *data, const char *hostname, int port, int *waitp) Curl_resolver_getaddrinfo() argument [all...] |
H A D | hsts.c | 116 const char *hostname, in hsts_create() 122 DEBUGASSERT(hostname); in hsts_create() 124 hlen = strlen(hostname); in hsts_create() 125 if(hlen && (hostname[hlen - 1] == '.')) in hsts_create() 134 duphost = Curl_memdup0(hostname, hlen); in hsts_create() 148 CURLcode Curl_hsts_parse(struct hsts *h, const char *hostname, in Curl_hsts_parse() argument 159 if(Curl_host_is_ipnum(hostname)) in Curl_hsts_parse() 221 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse() 236 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse() 243 return hsts_create(h, hostname, subdomain in Curl_hsts_parse() 115 hsts_create(struct hsts *h, const char *hostname, bool subdomains, curl_off_t expires) hsts_create() argument 254 Curl_hsts(struct hsts *h, const char *hostname, bool subdomain) Curl_hsts() argument [all...] |
H A D | urlapi.c | 110 /* Find the start of the hostname */ in find_host_sep() 440 * [user[:password][;options]]@]hostname in parse_hostname_login() 513 char *hostname = Curl_dyn_ptr(host); in Curl_parse_port() local 517 if(hostname[0] == '[') { in Curl_parse_port() 518 portptr = strchr(hostname, ']'); in Curl_parse_port() 531 portptr = strchr(hostname, ':'); in Curl_parse_port() 536 size_t keep = portptr - hostname; in Curl_parse_port() 572 /* this assumes 'hostname' now starts with [ */ 573 static CURLUcode ipv6_parse(struct Curl_URL *u, char *hostname, in ipv6_parse() argument 574 size_t hlen) /* length of hostname */ in ipv6_parse() 632 hostname_check(struct Curl_URL *u, char *hostname, size_t hlen) hostname_check() argument 772 const char *hostname = Curl_dyn_ptr(host); urldecode_host() local 1205 const char *hostname = Curl_dyn_ptr(&host); parseurl() local [all...] |
H A D | socks.c | 88 const char *hostname; member 301 protocol4a ? "a" : "", sx->hostname, sx->remote_port); in do_SOCKS4() 304 sx->hostname, sx->remote_port); in do_SOCKS4() 325 Curl_resolv(data, sx->hostname, sx->remote_port, TRUE, &dns); in do_SOCKS4() 331 infof(data, "SOCKS4 non-blocking resolve of %s", sx->hostname); in do_SOCKS4() 344 dns = Curl_fetch_addr(data, sx->hostname, (int)conn->port); in do_SOCKS4() 351 infof(data, "Hostname '%s' was found", sx->hostname); in do_SOCKS4() 394 failf(data, "SOCKS4 connection to %s not supported", sx->hostname); in do_SOCKS4() 398 sx->hostname); in do_SOCKS4() 437 /* append hostname */ in do_SOCKS4() [all...] |
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/ |
H A D | tirpc_rpc_call_dataint.c | 64 char *hostname; in main() local 69 hostname = argc[1]; in main() 74 rslt = rpc_call(hostname, progNum, VERSNUM, INTPROCNUM, (xdrproc_t) xdr_int, (char *)&intSnd, // xdr_in in main() 85 rslt = rpc_call(hostname, progNum, VERSNUM, INTPROCNUM, (xdrproc_t) xdr_int, (char *)&intSnd, // xdr_in in main() 96 rslt = rpc_call(hostname, progNum, VERSNUM, DBLPROCNUM, (xdrproc_t) xdr_double, (char *)&dblSnd, // xdr_in in main() 107 rslt = rpc_call(hostname, progNum, VERSNUM, LNGPROCNUM, (xdrproc_t) xdr_long, (char *)&lngSnd, // xdr_in in main() 120 rslt = rpc_call(hostname, progNum, VERSNUM, STRPROCNUM, (xdrproc_t) xdr_wrapstring, (char *)&strSnd, // xdr_in in main()
|
H A D | tirpc_rpc_call.c | 52 char hostname[256] = { 0 }; in main() local 57 strcpy(hostname, argc[1]); in main() 60 fprintf(stderr, "Server : %s\n", hostname); in main() 64 rslt = rpc_call(hostname, progNum, VERSNUM, PROCNUM, (xdrproc_t) xdr_int, (char *)&sndVar, // xdr_in in main()
|
/third_party/ltp/testcases/network/sockets/ |
H A D | ltpServer.c | 63 char hostname[MAX_HOSTNAME_LEN]; variable 80 ("Server arguments : %s <multiCast I.P.address/hostname>\n", in main() 85 strncpy(hostname, argv[1], 255); in main() 104 argv[0], hostname, inet_ntoa(multiCastAddr)); in main() 227 hostname, LOCAL_UDP_SERVER_PORT); in ltp_udp_server_queue() 245 printf("%s: Error receiving data \n", hostname); in ltp_udp_server_queue() 249 hostname, inet_ntoa(udpClientAddr.sin_addr), in ltp_udp_server_queue() 270 printf("%s: waiting for data on port TCP %u\n", hostname, in ltp_tcp_server_queue() 289 printf("%s: received from %s:TCP%d : %s\n", hostname, in ltp_tcp_server_queue() 391 hostname, LOCAL_MULTI_SERVER_POR in ltp_multi_server_queue() [all...] |
/third_party/node/lib/internal/modules/esm/ |
H A D | fetch_module.js | 86 function dnsLookup(hostname, options) { 89 return dnsLookup(hostname, options); 232 * @param {string} hostname url.hostname to test 235 async function isLocalAddress(hostname) { 238 StringPrototypeStartsWith(hostname, '[') && 239 StringPrototypeEndsWith(hostname, ']') 241 hostname = StringPrototypeSlice(hostname, 1, -1); 243 const addr = await dnsLookup(hostname, { verbati [all...] |
/third_party/lwip/src/core/ |
H A D | dns.c | 23 * Once a hostname has been resolved (or found to be non-existent), 285 static err_t dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype)); 467 * Iterate the local host-list for a hostname. 499 * Scans the local host-list for a hostname. 501 * @param hostname Hostname to look for in the local host-list 502 * @param addr the first IP address for the hostname in the local host-list or 511 dns_local_lookup(const char *hostname, ip_addr_t *addr, u8_t dns_addrtype) in dns_local_lookup() argument 514 return dns_lookup_local(hostname, addr LWIP_DNS_ADDRTYPE_ARG(dns_addrtype)); in dns_local_lookup() 519 dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype)) in dns_lookup_local() argument 524 if ((lwip_stricmp(entry->name, hostname) in dns_lookup_local() 560 dns_local_removehost(const char *hostname, const ip_addr_t *addr) dns_local_removehost() argument 596 dns_local_addhost(const char *hostname, const ip_addr_t *addr) dns_local_addhost() argument 789 const char *hostname, *hostname_part; dns_send() local 1638 dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback found, void *callback_arg) dns_gethostbyname() argument 1659 dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, dns_found_callback found, void *callback_arg, u8_t dns_addrtype) dns_gethostbyname_addrtype() argument [all...] |
/third_party/lwip/src/include/lwip/ |
H A D | dns.h | 74 /** static hostname */ 100 /** Callback which is invoked when a hostname is found. 103 * @param ipaddr pointer to an ip_addr_t containing the IP address of the hostname, 113 err_t dns_gethostbyname(const char *hostname, ip_addr_t *addr, 115 err_t dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, 122 err_t dns_local_lookup(const char *hostname, ip_addr_t *addr, u8_t dns_addrtype); 124 int dns_local_removehost(const char *hostname, const ip_addr_t *addr); 125 err_t dns_local_addhost(const char *hostname, const ip_addr_t *addr);
|