Searched refs:hints (Results 1 - 19 of 19) sorted by relevance

/haiku/headers/private/net/
H A Ddns_resolver.h24 const struct addrinfo* hints, struct addrinfo** res);
30 const struct addrinfo* hints, struct addrinfo** res)
38 result = dns->getaddrinfo(node, service, hints, res);
29 kgetaddrinfo(const char* node, const char* service, const struct addrinfo* hints, struct addrinfo** res) argument
/haiku/src/bin/network/ping/
H A Dmain.c104 struct addrinfo hints, *res, *ai; local
156 memset(&hints, 0, sizeof(hints));
157 hints.ai_socktype = SOCK_RAW;
159 hints.ai_flags = AI_ADDRCONFIG;
162 hints.ai_family = AF_INET;
164 hints.ai_family = AF_INET6;
166 hints.ai_family = AF_UNSPEC;
167 error = getaddrinfo(target, NULL, &hints, &res);
H A Dping6.c285 struct addrinfo hints, *res; local
513 memset(&hints, 0, sizeof(struct addrinfo));
514 hints.ai_flags = AI_NUMERICHOST; /* allow hostname? */
515 hints.ai_family = AF_INET6;
516 hints.ai_socktype = SOCK_RAW;
517 hints.ai_protocol = IPPROTO_ICMPV6;
522 error = cap_getaddrinfo(capdns, optarg, NULL, &hints, &res);
659 memset(&hints, 0, sizeof(struct addrinfo));
660 hints.ai_flags = AI_CANONNAME;
661 hints
[all...]
/haiku/src/tests/system/network/posixnet/
H A DGetAddrInfo.cpp49 struct addrinfo *info = NULL, hints = {0}; local
50 hints.ai_flags = AI_ADDRCONFIG;
53 int result = getaddrinfo("localhost", NULL, &hints, &info);
/haiku/src/bin/network/traceroute/
H A Das.c61 struct addrinfo hints, *res0, *res; local
71 memset(&hints, 0, sizeof(hints));
72 hints.ai_family = PF_UNSPEC;
73 hints.ai_socktype = SOCK_STREAM;
74 error = getaddrinfo(server, "whois", &hints, &res0);
77 error = getaddrinfo(server, "43", &hints, &res0);
/haiku/src/libs/util/
H A Drealhostname.c121 struct addrinfo hints, *res, *ores; local
124 memset(&hints, 0, sizeof(struct addrinfo));
125 hints.ai_family = addr->sa_family;
126 hints.ai_flags = AI_CANONNAME | AI_PASSIVE;
127 hints.ai_socktype = SOCK_STREAM;
129 error = getaddrinfo(buf, NULL, &hints, &res);
/haiku/src/tests/system/network/icmp/
H A Dbig_datagram.cpp49 struct addrinfo hints, *res; local
50 memset(&hints, 0, sizeof(struct addrinfo));
51 hints.ai_flags = AI_CANONNAME;
52 hints.ai_family = family;
53 hints.ai_socktype = socktype;
55 int n = getaddrinfo(host, serv, &hints, &res);
/haiku/src/tests/system/network/multicast/
H A Dmultisend.c108 struct addrinfo hints, *res, *ai; local
111 memset(&hints, 0, sizeof(hints));
112 hints.ai_family = AF_UNSPEC;
113 hints.ai_socktype = SOCK_DGRAM;
115 if ((err = getaddrinfo(group, port, &hints, &res)) != 0)
H A Dmulticat.c216 struct addrinfo hints, *res, *ai; local
221 memset(&hints, 0, sizeof(hints));
222 hints.ai_family = AF_UNSPEC;
223 hints.ai_socktype = SOCK_DGRAM;
225 if ((err = getaddrinfo(group, port, &hints, &res)) != 0)
/haiku/src/add-ons/kernel/network/dns_resolver/kernel_add_on/
H A Ddns_resolver.cpp127 const struct addrinfo* hints, struct addrinfo** res)
131 uint32 size = nodeSize + serviceSize + sizeof(*hints);
150 if (hints != NULL)
151 memcpy(buffer + off, hints, sizeof(*hints));
126 GetAddrInfo(const char* node, const char* service, const struct addrinfo* hints, struct addrinfo** res) argument
/haiku/src/bin/network/telnet/
H A Dcommands.c2193 struct addrinfo hints, *res, *res0 = NULL, *src_res, *src_res0 = NULL;
2254 memset(&hints, 0, sizeof(hints));
2255 hints.ai_family = family;
2256 hints.ai_socktype = SOCK_STREAM;
2257 error = getaddrinfo(src_addr, 0, &hints, &src_res);
2259 hints.ai_flags = 0;
2260 error = getaddrinfo(src_addr, 0, &hints, &src_res);
2322 memset(&hints, 0, sizeof(hints));
2185 struct addrinfo hints, *res, *res0 = NULL, *src_res, *src_res0 = NULL; local
2862 struct addrinfo hints, *res; local
[all...]
/haiku/src/bin/network/telnetd/
H A Dtelnetd.c341 struct addrinfo hints, *res; local
349 memset(&hints, 0, sizeof(hints));
350 hints.ai_flags = AI_PASSIVE;
351 hints.ai_family = family;
352 hints.ai_socktype = SOCK_STREAM;
353 hints.ai_protocol = 0;
354 error = getaddrinfo(NULL, service, &hints, &res);
/haiku/src/add-ons/kernel/network/dns_resolver/server/
H A Dmain.cpp110 const struct addrinfo* hints local
114 status_t result = getaddrinfo(node, service, hints, &ai);
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetaddrinfo.c306 "Invalid value for hints", /* EAI_BADHINTS */
452 const struct addrinfo *hints, struct addrinfo **res)
467 /* hints is allowed to be NULL */
486 if (hints) {
487 /* error check for hints */
488 if (hints->ai_addrlen || hints->ai_canonname ||
489 hints->ai_addr || hints->ai_next)
491 if (hints
451 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument
2329 struct addrinfo hints, *res0, *res; local
2429 struct addrinfo hints, *res, *res0; local
[all...]
/haiku/src/bin/network/ftpd/
H A Dftpd.c683 struct addrinfo hints, *res, *ai; local
698 memset(&hints, 0, sizeof(hints));
699 hints.ai_flags = AI_PASSIVE;
700 hints.ai_family = family;
701 hints.ai_socktype = SOCK_STREAM;
702 if (getaddrinfo(hrp->hostname, NULL, &hints, &res) == 0)
771 hints.ai_flags = AI_PASSIVE;
772 hints.ai_family = family;
773 hints
[all...]
H A Dftpcmd.y345 struct addrinfo hints;
401 memset(&hints, 0, sizeof(hints));
403 hints.ai_family = PF_INET;
406 hints.ai_family = PF_INET6;
409 hints.ai_family = PF_UNSPEC; /*XXX*/
410 hints.ai_socktype = SOCK_STREAM;
411 i = getaddrinfo(result[1], result[2], &hints, &res);
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_init.c393 struct addrinfo hints, *ai; local
403 memset(&hints, 0, sizeof(hints));
404 hints.ai_family = PF_UNSPEC;
405 hints.ai_socktype = SOCK_DGRAM; /*dummy*/
406 hints.ai_flags = AI_NUMERICHOST;
408 if (getaddrinfo(cp, sbuf, &hints, &ai) == 0 &&
/haiku/src/libs/compat/freebsd_network/compat/machine/x86_64/
H A Dcpufunc.h596 cpu_monitor(const void *addr, u_long extensions, u_int hints) argument
600 : : "a" (addr), "c" (extensions), "d" (hints));
604 cpu_mwait(u_long extensions, u_int hints) argument
607 __asm __volatile("mwait" : : "a" (hints), "c" (extensions));
/haiku/src/libs/compat/freebsd_network/compat/machine/x86/
H A Dcpufunc.h129 cpu_monitor(const void *addr, u_long extensions, u_int hints) argument
133 : : "a" (addr), "c" (extensions), "d" (hints));
137 cpu_mwait(u_long extensions, u_int hints) argument
140 __asm __volatile("mwait" : : "a" (hints), "c" (extensions));

Completed in 144 milliseconds