Searched refs:hints (Results 51 - 75 of 282) sorted by relevance

1234567891011>>

/freebsd-current/lib/libcasper/services/cap_dns/
H A Dcap_dns.h62 const char *servname, const struct addrinfo *hints, struct addrinfo **res);
98 const char *hostname, const char *servname, const struct addrinfo *hints,
102 return (getaddrinfo(hostname, servname, hints, res));
/freebsd-current/contrib/ofed/librdmacm/examples/
H A Dcommon.c49 struct rdma_addrinfo *hints, struct rdma_addrinfo **rai)
54 if (hints->ai_flags & RAI_PASSIVE)
55 return rdma_getaddrinfo(src, port, hints, rai);
57 rai_hints = *hints;
48 get_rdma_addr(const char *src, const char *dst, const char *port, struct rdma_addrinfo *hints, struct rdma_addrinfo **rai) argument
/freebsd-current/contrib/tcp_wrappers/
H A Dhosts_access.c347 struct addrinfo hints, *res; local
356 memset(&hints, 0, sizeof(hints));
357 hints.ai_family = AF_INET6;
358 hints.ai_socktype = SOCK_STREAM;
359 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
360 if ((ret = getaddrinfo(tok + 1, NULL, &hints, &res)) == 0) {
365 if (ret != 0 || getaddrinfo(string, NULL, &hints, &res) != 0)
426 struct addrinfo hints, *res; local
432 memset(&hints,
[all...]
H A Dtcpdmatch.c59 struct addrinfo hints, *hp, *res; local
230 memset(&hints, 0, sizeof(hints));
231 hints.ai_family = AF_INET6;
232 hints.ai_socktype = SOCK_STREAM;
233 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
234 if (getaddrinfo(client, NULL, &hints, &res) == 0) {
/freebsd-current/usr.sbin/rpc.lockd/
H A Dlockd.c501 struct addrinfo hints, *res = NULL; local
527 memset(&hints, 0, sizeof hints);
528 hints.ai_family = si.si_af;
529 hints.ai_socktype = si.si_socktype;
530 hints.ai_protocol = si.si_proto;
539 hints.ai_flags = AI_PASSIVE;
557 switch (hints.ai_family) {
561 hints.ai_flags |= AI_NUMERICHOST;
577 hints
725 struct addrinfo hints, *res = NULL; local
[all...]
/freebsd-current/sbin/devmatch/
H A Ddevmatch.c48 { "hints", required_argument, NULL, 'h' },
66 static void *hints; variable
87 err(1, "not enough space to read hints file of %ju bytes", (uintmax_t)sb.st_size);
112 snprintf(fn, sizeof(fn), "%s/linker.hints", q);
113 hints = read_hints(fn, &len);
114 if (hints == NULL)
122 errx(EX_UNAVAILABLE, "Can't read linker hints file.");
125 hints = read_hints(linker_hints, &len);
126 if (hints == NULL)
130 if (*(int *)(intptr_t)hints !
[all...]
/freebsd-current/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp228 struct addrinfo hints; local
229 memset(&hints, 0, sizeof(hints));
230 hints.ai_family = ai_family;
231 hints.ai_socktype = ai_socktype;
232 hints.ai_protocol = ai_protocol;
233 hints.ai_flags = ai_flags;
236 int err = ::getaddrinfo(hostname, servname, &hints, &service_info_list);
/freebsd-current/lib/libc/net/
H A Drcmd.c82 struct addrinfo hints, *res, *ai; local
113 memset(&hints, 0, sizeof(hints));
114 hints.ai_flags = AI_CANONNAME;
115 hints.ai_family = af;
116 hints.ai_socktype = SOCK_STREAM;
117 hints.ai_protocol = 0;
119 error = getaddrinfo(*ahost, num, &hints, &res);
372 struct addrinfo hints, *res, *r; local
375 memset(&hints,
684 struct addrinfo hints, *res, *r; local
[all...]
/freebsd-current/usr.sbin/lpr/lpd/
H A Dlpd.c651 struct addrinfo hints, *res, *r; local
703 memset(&hints, 0, sizeof(hints));
704 hints.ai_family = family;
705 hints.ai_socktype = SOCK_DGRAM; /*dummy*/
706 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
707 if (getaddrinfo(from_host, NULL, &hints, &res) == 0) {
719 memset(&hints, 0, sizeof(hints));
720 hints
852 struct addrinfo hints, *res, *r; local
[all...]
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_dns.c1329 struct evutil_addrinfo hints, *ai = NULL; local
1330 memset(&hints, 0, sizeof(hints));
1331 hints.ai_family = AF_INET;
1332 hints.ai_socktype = SOCK_STREAM;
1333 hints.ai_protocol = IPPROTO_TCP;
1335 "nonesuch.nowhere.example.com", "80", &hints, &ai);
1429 struct evutil_addrinfo hints, *a; local
1456 memset(&hints, 0, sizeof(hints));
[all...]
/freebsd-current/contrib/libevent/test/
H A Dregress_dns.c1329 struct evutil_addrinfo hints, *ai = NULL; local
1330 memset(&hints, 0, sizeof(hints));
1331 hints.ai_family = AF_INET;
1332 hints.ai_socktype = SOCK_STREAM;
1333 hints.ai_protocol = IPPROTO_TCP;
1335 "nonesuch.nowhere.example.com", "80", &hints, &ai);
1429 struct evutil_addrinfo hints, *a; local
1456 memset(&hints, 0, sizeof(hints));
[all...]
/freebsd-current/usr.sbin/rpcbind/
H A Drpcbind.c260 struct addrinfo hints, *res = NULL; local
327 memset(&hints, 0, sizeof hints);
328 hints.ai_flags = AI_PASSIVE;
329 hints.ai_family = si.si_af;
330 hints.ai_socktype = si.si_socktype;
331 hints.ai_protocol = si.si_proto;
345 if (hints.ai_family == AF_INET) {
347 } else if (hints.ai_family == AF_INET6) {
371 switch (hints
686 struct addrinfo hints, *res = NULL; local
[all...]
/freebsd-current/crypto/heimdal/kadmin/
H A Dkadm_conn.c240 struct addrinfo hints, *ai, *ap; local
242 memset (&hints, 0, sizeof(hints));
243 hints.ai_flags = AI_PASSIVE;
244 hints.ai_socktype = SOCK_STREAM;
246 e = getaddrinfo(NULL, p->port, &hints, &ai);
249 e = getaddrinfo(NULL, portstr, &hints, &ai);
/freebsd-current/contrib/dma/
H A Ddns.c68 struct addrinfo hints, *res, *res0 = NULL; local
73 memset(&hints, 0, sizeof(hints));
74 hints.ai_family = PF_UNSPEC;
75 hints.ai_socktype = SOCK_STREAM;
76 hints.ai_protocol = IPPROTO_TCP;
79 switch (getaddrinfo(host, servname, &hints, &res0)) {
/freebsd-current/contrib/ntp/sntp/libevent/sample/
H A Ddns-example.c245 struct evutil_addrinfo hints; local
246 memset(&hints, 0, sizeof(hints));
247 hints.ai_family = PF_UNSPEC;
248 hints.ai_protocol = IPPROTO_TCP;
249 hints.ai_flags = EVUTIL_AI_CANONNAME;
251 evdns_getaddrinfo(evdns_base, v[optind], NULL, &hints,
/freebsd-current/tools/tools/netrate/netreceive/
H A Dnetreceive.c196 struct addrinfo hints, *res, *res0; local
208 memset(&hints, 0, sizeof(hints));
209 hints.ai_family = PF_UNSPEC;
210 hints.ai_socktype = SOCK_DGRAM;
211 hints.ai_flags = AI_PASSIVE;
228 error = getaddrinfo(NULL, argv[1], &hints, &res0);
/freebsd-current/tools/tools/kttcp/
H A Dkttcp.c111 struct addrinfo hints, *addr, *res; local
196 memset(&hints, 0, sizeof hints);
197 hints.ai_flags = ai_flag;
198 hints.ai_socktype = SOCK_STREAM;
199 hints.ai_family = family;
200 error = getaddrinfo(host, portstr, &hints, &addr);
/freebsd-current/contrib/libevent/sample/
H A Ddns-example.c245 struct evutil_addrinfo hints; local
246 memset(&hints, 0, sizeof(hints));
247 hints.ai_family = PF_UNSPEC;
248 hints.ai_protocol = IPPROTO_TCP;
249 hints.ai_flags = EVUTIL_AI_CANONNAME;
251 evdns_getaddrinfo(evdns_base, v[optind], NULL, &hints,
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dverify_krb5_conf.c149 struct addrinfo hints; local
154 hints.ai_flags = 0;
155 hints.ai_family = PF_UNSPEC;
156 hints.ai_socktype = 0;
157 hints.ai_protocol = 0;
159 hints.ai_addrlen = 0;
160 hints.ai_canonname = NULL;
161 hints.ai_addr = NULL;
162 hints.ai_next = NULL;
168 hints
[all...]
/freebsd-current/usr.sbin/ypserv/
H A Dyp_main.c258 struct addrinfo hints, *res, *res0; local
264 memset(&hints, 0, sizeof(hints));
267 hints.ai_family = si->si_af;
268 hints.ai_socktype = si->si_socktype;
269 hints.ai_protocol = si->si_proto;
277 hints.ai_flags = AI_PASSIVE;
279 hints.ai_flags = 0;
281 &hints, &res0);
427 hints
[all...]
/freebsd-current/contrib/netcat/
H A Dsocks.c66 struct addrinfo hints, *res; local
68 bzero(&hints, sizeof(hints));
69 hints.ai_family = v4only ? PF_INET : PF_UNSPEC;
70 hints.ai_flags = numeric ? AI_NUMERICHOST : 0;
71 hints.ai_socktype = SOCK_STREAM;
72 r = getaddrinfo(h, p, &hints, &res);
127 struct addrinfo hints __attribute__ ((__unused__)),
/freebsd-current/contrib/bearssl/samples/
H A Dserver_basic.c98 struct addrinfo hints, *si, *p; local
102 memset(&hints, 0, sizeof hints);
103 hints.ai_family = PF_UNSPEC;
104 hints.ai_socktype = SOCK_STREAM;
105 err = getaddrinfo(host, port, &hints, &si);
/freebsd-current/crypto/heimdal/appl/kf/
H A Dkf.c288 struct addrinfo hints; local
292 memset (&hints, 0, sizeof(hints));
293 hints.ai_socktype = SOCK_STREAM;
294 hints.ai_protocol = IPPROTO_TCP;
298 error = getaddrinfo (hostname, portstr, &hints, &ai);
/freebsd-current/crypto/openssh/
H A Ddns.c168 struct addrinfo hints, *ai; local
179 memset(&hints, 0, sizeof(hints));
180 hints.ai_socktype = SOCK_DGRAM;
181 hints.ai_flags = AI_NUMERICHOST;
183 if (getaddrinfo(hostname, NULL, &hints, &ai) == 0) {
/freebsd-current/usr.sbin/ypldap/
H A Dypldap_dns.c208 struct addrinfo hints, *res0, *res; local
214 memset(&hints, 0, sizeof(hints));
215 hints.ai_family = PF_UNSPEC;
216 hints.ai_socktype = SOCK_DGRAM; /* DUMMY */
217 error = getaddrinfo(s, NULL, &hints, &res0);

Completed in 339 milliseconds

1234567891011>>