Searched refs:hints (Results 151 - 175 of 247) sorted by relevance

12345678910

/freebsd-11-stable/sbin/mount_nfs/
H A Dmount_nfs.c518 struct addrinfo hints, *ai_nfs, *ai; local
572 memset(&hints, 0, sizeof hints);
573 hints.ai_flags = AI_NUMERICHOST;
575 hints.ai_socktype = SOCK_STREAM;
577 hints.ai_socktype = SOCK_DGRAM;
579 if (getaddrinfo(hostp, portspec, &hints, &ai_nfs) != 0) {
580 hints.ai_flags = AI_CANONNAME;
581 if ((ecode = getaddrinfo(hostp, portspec, &hints, &ai_nfs))
/freebsd-11-stable/sbin/ping6/
H A Dping6.c291 struct addrinfo hints, *res; local
500 memset(&hints, 0, sizeof(struct addrinfo));
501 hints.ai_flags = AI_NUMERICHOST; /* allow hostname? */
502 hints.ai_family = AF_INET6;
503 hints.ai_socktype = SOCK_RAW;
504 hints.ai_protocol = IPPROTO_ICMPV6;
506 error = getaddrinfo(optarg, NULL, &hints, &res);
623 memset(&hints, 0, sizeof(struct addrinfo));
624 hints.ai_flags = AI_CANONNAME;
625 hints
[all...]
/freebsd-11-stable/contrib/ldns-host/
H A Dldns-host.c985 struct addrinfo hints, *ailist, *ai; local
990 memset(&hints, 0, sizeof hints);
992 case LDNS_RESOLV_INET: hints.ai_family = PF_INET; break;
993 case LDNS_RESOLV_INET6: hints.ai_family = PF_INET6; break;
994 default: hints.ai_family = PF_UNSPEC; break;
996 hints.ai_socktype = SOCK_STREAM;
997 do err = getaddrinfo(server, NULL, &hints, &ailist);
/freebsd-11-stable/contrib/bsnmp/snmpd/
H A Dconfig.c780 struct addrinfo hints, *res; local
784 memset(&hints, 0, sizeof(hints));
785 hints.ai_family = AF_INET;
786 hints.ai_socktype = SOCK_DGRAM;
787 hints.ai_protocol = IPPROTO_UDP;
788 hints.ai_flags = AI_PASSIVE;
789 error = getaddrinfo(host, NULL, &hints, &res);
/freebsd-11-stable/crypto/openssh/
H A Dsshconnect.c278 struct addrinfo hints, *res = NULL; local
292 memset(&hints, 0, sizeof(hints));
293 hints.ai_family = ai->ai_family;
294 hints.ai_socktype = ai->ai_socktype;
295 hints.ai_protocol = ai->ai_protocol;
296 hints.ai_flags = AI_PASSIVE;
297 gaierr = getaddrinfo(options.bind_address, NULL, &hints, &res);
H A Dchannels.c3188 struct addrinfo hints, *ai, *aitop; local
3218 * set to NULL and hints.ai_flags is not AI_PASSIVE
3220 memset(&hints, 0, sizeof(hints));
3221 hints.ai_family = IPv4or6;
3222 hints.ai_flags = wildcard ? AI_PASSIVE : 0;
3223 hints.ai_socktype = SOCK_STREAM;
3225 if ((r = getaddrinfo(addr, strport, &hints, &aitop)) != 0) {
4037 struct addrinfo hints; local
4072 memset(&hints,
4255 struct addrinfo hints, *ai, *aitop; local
4409 struct addrinfo hints, *ai, *aitop; local
[all...]
/freebsd-11-stable/sbin/setkey/
H A Dparse.y1216 struct addrinfo hints, *res = NULL;
1219 memset(&hints, 0, sizeof(hints));
1220 hints.ai_family = p_aifamily;
1221 hints.ai_socktype = SOCK_DGRAM; /*dummy*/
1222 hints.ai_protocol = IPPROTO_UDP; /*dummy*/
1223 hints.ai_flags = p_aiflags;
1224 error = getaddrinfo(host, port, &hints, &res);
/freebsd-11-stable/usr.bin/tftp/
H A Dmain.c271 struct addrinfo hints, *res0, *res; local
281 memset(&hints, 0, sizeof(hints));
282 hints.ai_family = PF_UNSPEC;
283 hints.ai_socktype = SOCK_DGRAM;
284 hints.ai_protocol = IPPROTO_UDP;
285 hints.ai_flags = AI_CANONNAME;
288 error = getaddrinfo(host, lport, &hints, &res0);
/freebsd-11-stable/contrib/ntp/sntp/
H A Dmain.c383 struct addrinfo hints; /* Local copy is OK */ local
391 ZERO(hints);
392 hints.ai_family = ai_fam_pref;
393 hints.ai_flags = AI_CANONNAME | Z_AI_NUMERICSERV;
399 hints.ai_socktype = SOCK_DGRAM;
400 hints.ai_protocol = IPPROTO_UDP;
426 getaddrinfo_sometime(name, "123", &hints, 0,
447 const struct addrinfo * hints,
441 sntp_name_resolved( int rescode, int gai_errno, void * context, const char * name, const char * service, const struct addrinfo * hints, const struct addrinfo * addr ) argument
/freebsd-11-stable/contrib/wpa/src/wps/
H A Dwps_upnp.c325 struct addrinfo hints; local
367 os_memset(&hints, 0, sizeof(struct addrinfo));
368 hints.ai_family = AF_INET; /* IPv4 */
369 hints.ai_socktype = SOCK_STREAM;
374 hints.ai_flags = AI_NUMERICHOST;
377 hints.ai_flags = 0;
379 hints.ai_protocol = 0; /* Any protocol? */
381 &hints, &result);
/freebsd-11-stable/usr.sbin/mountd/
H A Dmountd.c737 struct addrinfo hints, *res = NULL; local
764 memset(&hints, 0, sizeof hints);
765 hints.ai_family = si.si_af;
766 hints.ai_socktype = si.si_socktype;
767 hints.ai_protocol = si.si_proto;
781 hints.ai_flags = AI_PASSIVE;
799 switch (hints.ai_family) {
803 hints.ai_flags |= AI_NUMERICHOST;
818 hints
955 struct addrinfo hints, *res = NULL; local
2819 struct addrinfo *ai, *tai, hints; local
3237 struct addrinfo hints, *ai = NULL; local
[all...]
/freebsd-11-stable/crypto/heimdal/lib/kadm5/
H A Dipropd_slave.c52 struct addrinfo hints; local
56 memset (&hints, 0, sizeof(hints));
57 hints.ai_socktype = SOCK_STREAM;
64 error = getaddrinfo (master, port_str, &hints, &ai);
/freebsd-11-stable/usr.sbin/pppctl/
H A Dpppctl.c476 struct addrinfo hints, *res, *pai; local
508 memset(&hints, 0, sizeof(hints));
509 hints.ai_socktype = SOCK_STREAM;
510 gai = getaddrinfo(addr, port, &hints, &res);
/freebsd-11-stable/sbin/pfctl/
H A Dpfctl_parser.c1571 struct addrinfo hints, *res; local
1574 memset(&hints, 0, sizeof(hints));
1575 hints.ai_family = AF_INET6;
1576 hints.ai_socktype = SOCK_DGRAM; /*dummy*/
1577 hints.ai_flags = AI_NUMERICHOST;
1578 if (getaddrinfo(s, "0", &hints, &res) == 0) {
1601 struct addrinfo hints, *res0, *res; local
1613 memset(&hints, 0, sizeof(hints));
[all...]
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c681 struct addrinfo hints, *res, *ai; local
696 memset(&hints, 0, sizeof(hints));
697 hints.ai_flags = AI_PASSIVE;
698 hints.ai_family = family;
699 hints.ai_socktype = SOCK_STREAM;
700 if (getaddrinfo(hrp->hostname, NULL, &hints, &res) == 0)
769 hints.ai_flags = AI_PASSIVE;
770 hints.ai_family = family;
771 hints
[all...]
/freebsd-11-stable/contrib/tnftp/src/
H A Dutil.c1251 struct addrinfo hints, *res; local
1253 memset(&hints, 0, sizeof(hints));
1254 hints.ai_family = AF_INET6;
1255 hints.ai_socktype = SOCK_DGRAM; /*dummy*/
1256 hints.ai_flags = AI_NUMERICHOST;
1257 if (getaddrinfo(addr, "0", &hints, &res) != 0)
/freebsd-11-stable/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c1073 struct addrinfo hints, *info; local
1077 memset(&hints, 0, sizeof(hints));
1078 hints.ai_family = AF_INET; /* Get only ipv4 addrinfo. */
1079 hints.ai_socktype = SOCK_STREAM;
1080 hints.ai_flags = AI_CANONNAME;
1082 error = getaddrinfo(buffer, NULL, &hints, &info);
/freebsd-11-stable/lib/libc/rpc/
H A Drpcb_clnt.c283 struct addrinfo hints, *res, *tres; local
330 memset(&hints, 0, sizeof hints);
331 hints.ai_family = si.si_af;
332 hints.ai_socktype = si.si_socktype;
333 hints.ai_protocol = si.si_proto;
361 if (getaddrinfo(host, "sunrpc", &hints, &res) != 0) {
/freebsd-11-stable/lib/libc/resolv/
H A Dres_init.c399 struct addrinfo hints, *ai; local
409 memset(&hints, 0, sizeof(hints));
410 hints.ai_family = PF_UNSPEC;
411 hints.ai_socktype = SOCK_DGRAM; /*dummy*/
412 hints.ai_flags = AI_NUMERICHOST;
414 if (getaddrinfo(cp, sbuf, &hints, &ai) == 0) {
/freebsd-11-stable/lib/libc/tests/sys/
H A Dsendfile_test.c104 struct addrinfo hints; local
121 memset(&hints, 0, sizeof(hints));
122 hints.ai_family = domain;
123 hints.ai_flags = AI_ADDRCONFIG|AI_NUMERICSERV|AI_NUMERICHOST;
124 hints.ai_socktype = type;
126 error = getaddrinfo(host, serv, &hints, res);
/freebsd-11-stable/usr.sbin/bhyve/
H A Drfb.c971 struct addrinfo hints; local
997 memset(&hints, 0, sizeof(hints));
998 hints.ai_family = AF_UNSPEC;
999 hints.ai_socktype = SOCK_STREAM;
1000 hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV | AI_PASSIVE;
1002 if ((e = getaddrinfo(hostname, servname, &hints, &ai)) != 0) {
/freebsd-11-stable/contrib/unbound/libunbound/
H A Dlibworker.c103 hints_delete(w->env->hints);
166 w->env->hints = hints_create();
167 if(w->env->hints && !hints_apply_cfg(w->env->hints, cfg)) {
168 hints_delete(w->env->hints);
169 w->env->hints = NULL;
176 hints_delete(w->env->hints);
177 w->env->hints = NULL;
184 !w->env->hints) {
/freebsd-11-stable/contrib/ntp/ntpq/
H A Dntpq.c662 struct addrinfo hints, *ai; local
690 ZERO(hints);
691 hints.ai_family = fam;
692 hints.ai_protocol = IPPROTO_UDP;
693 hints.ai_socktype = SOCK_DGRAM;
694 hints.ai_flags = Z_AI_NUMERICHOST;
697 a_info = getaddrinfo(hname, svc, &hints, &ai);
703 hints.ai_flags = AI_CANONNAME;
705 hints.ai_flags |= AI_ADDRCONFIG;
707 a_info = getaddrinfo(hname, svc, &hints,
1939 struct addrinfo hints, *ai = NULL; local
[all...]
/freebsd-11-stable/contrib/ofed/libibverbs/examples/
H A Dud_pingpong.c129 struct addrinfo hints = { local
143 n = getaddrinfo(servername, service, &hints, &res);
203 struct addrinfo hints = { local
218 n = getaddrinfo(NULL, service, &hints, &res);
H A Duc_pingpong.c129 struct addrinfo hints = { local
143 n = getaddrinfo(servername, service, &hints, &res);
205 struct addrinfo hints = { local
220 n = getaddrinfo(NULL, service, &hints, &res);

Completed in 1411 milliseconds

12345678910