Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 130) sorted by relevance

123456

/dflybsd-src/sbin/nfsd/
H A Dnfsd.c83 struct addrinfo hints);
111 struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints; in main() local
244 memset(&hints, 0, sizeof hints); in main()
245 hints.ai_flags = AI_PASSIVE; in main()
246 hints.ai_family = AF_INET; in main()
247 hints.ai_socktype = SOCK_DGRAM; in main()
248 hints.ai_protocol = IPPROTO_UDP; in main()
249 ecode = getaddrinfo(NULL, "nfs", &hints, &ai_udp); in main()
263 memset(&hints, 0, sizeof hints); in main()
264 hints.ai_flags = AI_PASSIVE; in main()
[all …]
/dflybsd-src/usr.sbin/lpr/common_source/
H A Dnet.c87 struct addrinfo hints, *res, *ai; in getport() local
96 memset(&hints, 0, sizeof(hints)); in getport()
97 hints.ai_family = family; in getport()
98 hints.ai_socktype = SOCK_STREAM; in getport()
99 hints.ai_protocol = 0; in getport()
101 &hints, &res); in getport()
181 struct addrinfo hints, *local_res, *remote_res, *lr, *rr; in checkremote() local
199 memset(&hints, 0, sizeof(hints)); in checkremote()
200 hints.ai_family = family; in checkremote()
201 hints.ai_socktype = SOCK_STREAM; in checkremote()
[all …]
/dflybsd-src/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c62 struct addrinfo hints = zero_addrinfo; in main() local
70 hints.ai_family = AF_UNSPEC; in main()
71 hints.ai_socktype = 0; in main()
72 hints.ai_protocol = 0; in main()
73 hints.ai_flags = 0; in main()
78 hints.ai_flags |= AI_CANONNAME; in main()
82 if (!parse_af(optarg, &hints.ai_family)) { in main()
89 hints.ai_flags |= AI_NUMERICHOST; in main()
93 hints.ai_flags |= AI_NUMERICSERV; in main()
101 if (!parse_protocol(optarg, &hints.ai_protocol)) { in main()
[all …]
/dflybsd-src/usr.sbin/rpc.lockd/
H A Dlockd.c273 struct addrinfo hints, *res = NULL; in create_service() local
301 memset(&hints, 0, sizeof hints); in create_service()
302 hints.ai_flags = AI_PASSIVE; in create_service()
303 hints.ai_family = si.si_af; in create_service()
304 hints.ai_socktype = si.si_socktype; in create_service()
305 hints.ai_protocol = si.si_proto; in create_service()
323 switch (hints.ai_family) { in create_service()
327 hints.ai_flags &= AI_NUMERICHOST; in create_service()
342 hints.ai_flags &= AI_NUMERICHOST; in create_service()
366 res->ai_flags = hints.ai_flags; in create_service()
[all …]
/dflybsd-src/contrib/libpcap/
H A Dnametoaddr.c200 struct addrinfo hints, *res; in pcap_nametoaddrinfo() local
203 memset(&hints, 0, sizeof(hints)); in pcap_nametoaddrinfo()
204 hints.ai_family = PF_UNSPEC; in pcap_nametoaddrinfo()
205 hints.ai_socktype = SOCK_STREAM; /*not really*/ in pcap_nametoaddrinfo()
206 hints.ai_protocol = IPPROTO_TCP; /*not really*/ in pcap_nametoaddrinfo()
207 error = getaddrinfo(name, NULL, &hints, &res); in pcap_nametoaddrinfo()
326 struct addrinfo hints, *res, *ai; in pcap_nametoport() local
339 memset(&hints, 0, sizeof(hints)); in pcap_nametoport()
340 hints.ai_family = PF_UNSPEC; in pcap_nametoport()
341 hints.ai_socktype = SOCK_STREAM; in pcap_nametoport()
[all …]
/dflybsd-src/contrib/tcp_wrappers/
H A Dscaffold.c86 struct addrinfo hints, *res; local
88 memset(&hints, 0, sizeof(hints));
89 hints.ai_family = PF_UNSPEC;
90 hints.ai_socktype = SOCK_STREAM;
91 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
92 if (getaddrinfo(host, NULL, &hints, &res) == 0)
95 memset(&hints, 0, sizeof(hints));
96 hints.ai_family = PF_UNSPEC;
97 hints.ai_socktype = SOCK_STREAM;
98 hints.ai_flags = AI_PASSIVE | AI_CANONNAME;
[all …]
H A Dhosts_access.c344 struct addrinfo hints, *res; local
353 memset(&hints, 0, sizeof(hints));
354 hints.ai_family = AF_INET6;
355 hints.ai_socktype = SOCK_STREAM;
356 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
357 if ((ret = getaddrinfo(tok + 1, NULL, &hints, &res)) == 0) {
362 if (ret != 0 || getaddrinfo(string, NULL, &hints, &res) != 0)
434 struct addrinfo hints, *res; local
440 memset(&hints, 0, sizeof(hints));
441 hints.ai_family = AF_INET6;
[all …]
H A Dsocket.c175 struct addrinfo hints, *res, *res0 = NULL; local
217 memset(&hints, 0, sizeof(hints));
218 hints.ai_family = sin->sa_family;
219 hints.ai_socktype = SOCK_STREAM;
220 hints.ai_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST;
221 if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) {
246 memset(&hints, 0, sizeof(hints));
247 hints.ai_family = sin->sa_family;
248 hints.ai_socktype = SOCK_STREAM;
249 hints.ai_flags = AI_PASSIVE | AI_CANONNAME;
[all …]
/dflybsd-src/contrib/gcc-8.0/gcc/
H A Dipa-inline-analysis.c124 int hints = 0; in simple_edge_hints() local
132 hints |= INLINE_HINT_same_scc; in simple_edge_hints()
137 hints |= INLINE_HINT_cross_module; in simple_edge_hints()
139 return hints; in simple_edge_hints()
154 ipa_hints hints; in do_estimate_edge_time() local
171 &time, &nonspec_time, &hints, es->param); in do_estimate_edge_time()
182 hints |= INLINE_HINT_known_hot; in do_estimate_edge_time()
200 hints |= simple_edge_hints (edge); in do_estimate_edge_time()
201 edge_growth_cache[edge->uid].hints = hints + 1; in do_estimate_edge_time()
254 ipa_hints hints; in do_estimate_edge_hints() local
[all …]
H A Dipa-inline.h30 ipa_hints hints; member
33 : size (0), hints (0) {} in edge_growth_cache_entry()
36 int size, ipa_hints hints) in edge_growth_cache_entry()
38 hints (hints) {} in edge_growth_cache_entry()
114 || !(ret = edge_growth_cache[edge->uid].hints)) in estimate_edge_hints()
/dflybsd-src/lib/libc/net/
H A Drcmdsh.c66 struct addrinfo hints, *res; in rcmdsh() local
86 memset(&hints, 0, sizeof(hints)); in rcmdsh()
87 hints.ai_flags = AI_CANONNAME; in rcmdsh()
88 hints.ai_family = PF_UNSPEC; in rcmdsh()
89 hints.ai_socktype = SOCK_STREAM; in rcmdsh()
91 error = getaddrinfo(*ahost, num, &hints, &res); in rcmdsh()
H A Drcmd.c82 struct addrinfo hints, *res, *ai; in rcmd_af() local
113 memset(&hints, 0, sizeof(hints)); in rcmd_af()
114 hints.ai_flags = AI_CANONNAME; in rcmd_af()
115 hints.ai_family = af; in rcmd_af()
116 hints.ai_socktype = SOCK_STREAM; in rcmd_af()
117 hints.ai_protocol = 0; in rcmd_af()
119 error = getaddrinfo(*ahost, num, &hints, &res); in rcmd_af()
370 struct addrinfo hints, *res, *r; in ruserok() local
373 memset(&hints, 0, sizeof(hints)); in ruserok()
374 hints.ai_family = PF_UNSPEC; in ruserok()
[all …]
/dflybsd-src/usr.sbin/dntpd/
H A Dsocket.c43 struct addrinfo hints, *res, *res0; in udp_socket() local
50 memset(&hints, 0, sizeof(hints)); in udp_socket()
51 hints.ai_family = family; in udp_socket()
52 hints.ai_socktype = SOCK_DGRAM; in udp_socket()
54 error = getaddrinfo(target, servname, &hints, &res0); in udp_socket()
/dflybsd-src/usr.sbin/lpr/lpd/
H A Dlpd.c643 struct addrinfo hints, *res, *r; in chkhost() local
699 memset(&hints, 0, sizeof(hints)); in chkhost()
700 hints.ai_family = family; in chkhost()
701 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in chkhost()
702 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; in chkhost()
703 if (getaddrinfo(from_host, NULL, &hints, &res) == 0) { in chkhost()
715 memset(&hints, 0, sizeof(hints)); in chkhost()
716 hints.ai_family = family; in chkhost()
717 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in chkhost()
718 error = getaddrinfo(from_host, NULL, &hints, &res); in chkhost()
[all …]
/dflybsd-src/crypto/libressl/tls/
H A Dtls_client.c62 struct addrinfo hints, *res, *res0; in tls_connect_servername() local
102 memset(&hints, 0, sizeof(hints)); in tls_connect_servername()
103 hints.ai_socktype = SOCK_STREAM; in tls_connect_servername()
106 hints.ai_family = AF_INET; in tls_connect_servername()
107 hints.ai_flags = AI_NUMERICHOST; in tls_connect_servername()
108 if (getaddrinfo(h, p, &hints, &res0) != 0) { in tls_connect_servername()
110 hints.ai_family = AF_INET6; in tls_connect_servername()
111 if (getaddrinfo(h, p, &hints, &res0) != 0) { in tls_connect_servername()
113 hints.ai_family = AF_UNSPEC; in tls_connect_servername()
114 hints.ai_flags = AI_ADDRCONFIG; in tls_connect_servername()
[all …]
/dflybsd-src/contrib/gcc-8.0/gcc/c-family/
H A Dknown-headers.cc59 static const stdlib_hint hints[] = { in get_stdlib_header_for_name() local
149 const size_t num_hints = sizeof (hints) / sizeof (hints[0]); in get_stdlib_header_for_name()
151 if (strcmp (name, hints[i].name) == 0) in get_stdlib_header_for_name()
152 return hints[i].header[lib]; in get_stdlib_header_for_name()
/dflybsd-src/tools/tools/netrate/netblast/
H A Dnetblast.c145 struct addrinfo hints, *res, *res0; in main() local
153 memset(&hints, 0, sizeof(hints)); in main()
154 hints.ai_family = PF_UNSPEC; in main()
155 hints.ai_socktype = SOCK_DGRAM; in main()
188 error = getaddrinfo(argv[1],argv[2], &hints, &res0); in main()
/dflybsd-src/usr.sbin/rip6query/
H A Drip6query.c84 struct addrinfo hints, *res; in main() local
116 memset(&hints, 0, sizeof(hints)); in main()
117 hints.ai_family = AF_INET6; in main()
118 hints.ai_socktype = SOCK_DGRAM; in main()
119 error = getaddrinfo(argv[0], pbuf, &hints, &res); in main()
/dflybsd-src/libexec/dma/
H A Ddns.c68 struct addrinfo hints, *res, *res0 = NULL; in add_host() local
73 memset(&hints, 0, sizeof(hints)); in add_host()
74 hints.ai_family = PF_UNSPEC; in add_host()
75 hints.ai_socktype = SOCK_STREAM; in add_host()
76 hints.ai_protocol = IPPROTO_TCP; in add_host()
79 switch (getaddrinfo(host, servname, &hints, &res0)) { in add_host()
/dflybsd-src/usr.bin/logger/
H A Dlogger.c163 struct addrinfo hints, *res, *r; in logmessage() local
174 memset(&hints, 0, sizeof(hints)); in logmessage()
175 hints.ai_family = family; in logmessage()
176 hints.ai_socktype = SOCK_DGRAM; in logmessage()
177 error = getaddrinfo(host, "syslog", &hints, &res); in logmessage()
180 error = getaddrinfo(host, "514", &hints, &res); in logmessage()
/dflybsd-src/crypto/openssh/
H A Daddr.c379 struct addrinfo hints, *ai; in addr_pton() local
381 memset(&hints, '\0', sizeof(hints)); in addr_pton()
382 hints.ai_flags = AI_NUMERICHOST; in addr_pton()
384 if (p == NULL || getaddrinfo(p, NULL, &hints, &ai) != 0) in addr_pton()
408 struct addrinfo hints, *ai; in addr_sa_pton() local
410 memset(&hints, '\0', sizeof(hints)); in addr_sa_pton()
411 hints.ai_flags = AI_NUMERICHOST; in addr_sa_pton()
413 if (h == NULL || getaddrinfo(h, s, &hints, &ai) != 0) in addr_sa_pton()
/dflybsd-src/lib/libutil/
H A Drealhostname.c130 struct addrinfo hints, *res, *ores; in realhostname_sa() local
133 memset(&hints, 0, sizeof(struct addrinfo)); in realhostname_sa()
134 hints.ai_family = addr->sa_family; in realhostname_sa()
135 hints.ai_flags = AI_CANONNAME | AI_PASSIVE; in realhostname_sa()
136 hints.ai_socktype = SOCK_STREAM; in realhostname_sa()
138 error = getaddrinfo(buf, NULL, &hints, &res); in realhostname_sa()
/dflybsd-src/usr.sbin/rpcbind/
H A Drpcbind.c232 struct addrinfo hints, *res = NULL; in init_transport() local
299 memset(&hints, 0, sizeof hints); in init_transport()
300 hints.ai_flags = AI_PASSIVE; in init_transport()
301 hints.ai_family = si.si_af; in init_transport()
302 hints.ai_socktype = si.si_socktype; in init_transport()
303 hints.ai_protocol = si.si_proto; in init_transport()
318 if (hints.ai_family == AF_INET) { in init_transport()
320 } else if (hints.ai_family == AF_INET6) { in init_transport()
344 switch (hints.ai_family) { in init_transport()
348 hints.ai_flags &= AI_NUMERICHOST; in init_transport()
[all …]
/dflybsd-src/crypto/libressl/apps/nc/
H A Dsocks.c66 struct addrinfo hints, *res; in decode_addrport() local
68 memset(&hints, 0, sizeof(hints)); in decode_addrport()
69 hints.ai_family = v4only ? PF_INET : PF_UNSPEC; in decode_addrport()
70 hints.ai_flags = numeric ? AI_NUMERICHOST : 0; in decode_addrport()
71 hints.ai_socktype = SOCK_STREAM; in decode_addrport()
72 r = getaddrinfo(h, p, &hints, &res); in decode_addrport()
178 struct addrinfo hints __attribute__ ((__unused__)), in socks_connect() argument
/dflybsd-src/usr.bin/whois/
H A Dwhois.c220 struct addrinfo hints, *res; in gethostinfo() local
223 memset(&hints, 0, sizeof(hints)); in gethostinfo()
224 hints.ai_flags = 0; in gethostinfo()
225 hints.ai_family = AF_UNSPEC; in gethostinfo()
226 hints.ai_socktype = SOCK_STREAM; in gethostinfo()
227 error = getaddrinfo(host, port, &hints, &res); in gethostinfo()

123456