Home
last modified time | relevance | path

Searched refs:ai_family (Results 1 – 25 of 256) sorted by relevance

1234567891011

/freebsd/contrib/ntp/libntp/
H A Dntp_rfc2553.c257 int ai_family,
268 int ai_family, in DNSlookup_name() argument
307 ai->ai_family = hints->ai_family; in getaddrinfo()
311 family = hints->ai_family; in getaddrinfo()
408 if (ai->ai_family == AF_INET) in getaddrinfo()
410 else if (ai->ai_family == AF_INET6) in getaddrinfo()
484 if (ai->ai_family == AF_INET) in do_nodename()
488 sockin->sin_family = (short) ai->ai_family; in do_nodename()
495 sockin6->sin6_family = (short) ai->ai_family; in do_nodename()
518 ai->ai_family = AF_INET6; in do_nodename()
[all …]
/freebsd/contrib/ofed/librdmacm/
H A Daddrinfo.c56 if (rai->ai_family != AF_IB) in ucma_convert_to_ai()
57 ai->ai_family = rai->ai_family; in ucma_convert_to_ai()
181 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) && in ucma_convert_to_rai()
183 rai->ai_family = AF_IB; in ucma_convert_to_rai()
190 rai->ai_family = ai->ai_family; in ucma_convert_to_rai()
198 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) && in ucma_convert_to_rai()
200 rai->ai_family = AF_IB; in ucma_convert_to_rai()
207 rai->ai_family = ai->ai_family; in ucma_convert_to_rai()
262 rai->ai_family = hints->ai_family; in rdma_getaddrinfo()
/freebsd/lib/libc/net/
H A Dgetaddrinfo.c416 pai->ai_family = PF_UNSPEC; in getaddrinfo()
433 switch (hints->ai_family) { in getaddrinfo()
452 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, in getaddrinfo()
480 if (pai->ai_family != AF_INET6) in getaddrinfo()
494 if (MATCH_FAMILY(pai->ai_family, PF_INET, 1) in getaddrinfo()
496 || MATCH_FAMILY(pai->ai_family, PF_INET6, 1) in getaddrinfo()
501 if (pai->ai_family == PF_UNSPEC) { in getaddrinfo()
503 pai->ai_family = PF_INET6; in getaddrinfo()
505 pai->ai_family = PF_INET; in getaddrinfo()
526 if (!MATCH_FAMILY(pai->ai_family, afd->a_af, 1)) in getaddrinfo()
[all …]
/freebsd/usr.bin/logger/
H A Dlogger.c280 .ai_family = family, in socksetup()
288 switch (res->ai_family) { in socksetup()
293 if (ss_src[res->ai_family] != NULL) in socksetup()
295 ss_src[res->ai_family] = in socksetup()
297 if (ss_src[res->ai_family] == NULL) in socksetup()
299 memcpy(ss_src[res->ai_family], res->ai_addr, in socksetup()
309 .ai_family = family, in socksetup()
329 s = socket(res->ai_family, res->ai_socktype, in socksetup()
333 if (src && ss_src[res->ai_family] == NULL) in socksetup()
336 if (ss_src[res->ai_family]) { in socksetup()
[all …]
/freebsd/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c70 hints.ai_family = AF_UNSPEC; in main()
82 if (!parse_af(optarg, &hints.ai_family)) { in main()
279 if ((ai->ai_family >= 0) && in printaddrinfo()
280 ((size_t)ai->ai_family < __arraycount(address_families)) && in printaddrinfo()
281 (address_families[ai->ai_family] != NULL)) in printaddrinfo()
282 n = printf(" %s", address_families[ai->ai_family]); in printaddrinfo()
284 n = printf(" %d", ai->ai_family); in printaddrinfo()
298 switch (ai->ai_family) { in printaddrinfo()
/freebsd/usr.sbin/pnfsdscopymr/
H A Dpnfsdscopymr.c183 hints.ai_family = PF_UNSPEC; in main()
191 nres->ai_family) { in main()
197 if (nres->ai_family == AF_INET && in main()
204 } else if (nres->ai_family == in main()
245 hints.ai_family = PF_UNSPEC; in main()
254 nres->ai_family) { in main()
258 if (nres->ai_family == AF_INET && in main()
267 } else if (nres->ai_family == in main()
/freebsd/lib/libc/tests/nss/
H A Dgetaddrinfo_test.c100 ai1->ai_family != ai2->ai_family || in compare_addrinfo_()
162 ai->ai_flags, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in sdump_addrinfo()
353 if (!(ai->ai_family >= 0 && ai->ai_family < AF_MAX)) in addrinfo_test_correctness()
368 ai->ai_family != ai->ai_addr->sa_family) in addrinfo_test_correctness()
410 run_tests(char *hostlist_file, const char *snapshot_file, int ai_family) in run_tests() argument
424 hints.ai_family = ai_family; in run_tests()
489 #define RUN_TESTS(tc, snapshot_file, ai_family) do { \ argument
493 run_tests(_hostlist_file, snapshot_file, ai_family); \
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
H A Dh_gai.c86 printf("%sfamily %d%s", start, res->ai_family, end); in print1()
117 ai.ai_family = PF_UNSPEC; in main()
125 ai.ai_family = atoi(optarg); in main()
146 ai.ai_family = PF_INET; in main()
149 ai.ai_family = PF_INET6; in main()
/freebsd/contrib/libpcap/rpcapd/
H A Drpcapd.c206 mainhints.ai_family = PF_UNSPEC; in main()
234 mainhints.ai_family = PF_INET; // IPv4 server only in main()
578 activelist[i].ai_family = mainhints.ai_family; in main_startup()
634 switch (tempaddrinfo->ai_family) in main_startup()
666 tempaddrinfo->ai_family, in main_startup()
1347 hints.ai_family = AF_INET; // PF_UNSPEC to have both IPv4 and IPv6 server in main_active()
1349 hints.ai_family = activepars->ai_family; in main_active()
1352 activepars->address, activepars->port, (hints.ai_family == AF_INET) ? "IPv4": in main_active()
1353 (hints.ai_family == AF_INET6) ? "IPv6" : "Unspecified"); in main_active()
1377 activepars->address, activepars->port, (hints.ai_family == AF_INET) ? "IPv4": in main_active()
[all …]
/freebsd/sbin/ping/
H A Dmain.c151 hints.ai_family = AF_INET; in main()
153 hints.ai_family = AF_INET6; in main()
155 hints.ai_family = AF_UNSPEC; in main()
161 if (ai->ai_family == AF_INET) { in main()
165 if (ai->ai_family == AF_INET6) { in main()
/freebsd/contrib/netbsd-tests/net/sys/
H A Dt_rfc6056.c59 hints.ai_family = family; in test()
80 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test()
89 ss.ss_family = res->ai_family; in test()
101 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test()
/freebsd/crypto/heimdal/lib/roken/
H A Dgetaddrinfo.c138 a->ai_family = PF_INET; in const_v4()
158 a->ai_family = PF_INET6; in const_v6()
194 family = hints->ai_family; in get_null()
284 family = hints->ai_family; in get_number()
326 family = hints->ai_family; in get_nodes()
387 && hints->ai_family != PF_UNSPEC in getaddrinfo()
388 && hints->ai_family != PF_INET in getaddrinfo()
390 && hints->ai_family != PF_INET6 in getaddrinfo()
H A Dmini_inetd.c110 fds[i] = socket (a->ai_family, a->ai_socktype, a->ai_protocol); in mini_inetd_addrinfo()
116 warn ("bind af = %d", a->ai_family); in mini_inetd_addrinfo()
122 warn ("listen af = %d", a->ai_family); in mini_inetd_addrinfo()
185 hints.ai_family = PF_UNSPEC; in mini_inetd()
H A Dgetaddrinfo-test.c78 hints.ai_family = family; in doit()
91 if (inet_ntop (r->ai_family, in doit()
101 r->ai_family, r->ai_socktype, r->ai_protocol, in doit()
/freebsd/contrib/tcp_wrappers/
H A Dscaffold.c87 hints.ai_family = PF_UNSPEC; in find_inet_addr()
94 hints.ai_family = PF_UNSPEC; in find_inet_addr()
101 if (res->ai_family != AF_INET6 && res->ai_family != AF_INET) { in find_inet_addr()
102 tcpd_warn("%d: not an internet host", res->ai_family); in find_inet_addr()
/freebsd/contrib/bsnmp/lib/
H A Dsupport.c138 if (hent->h_addrtype != hints->ai_family) in getaddrinfo()
147 (*res)->ai_family = hints->ai_family; in getaddrinfo()
158 s->sin_family = hints->ai_family; in getaddrinfo()
/freebsd/usr.sbin/ypldap/
H A Dypldap_dns.c215 hints.ai_family = PF_UNSPEC; in host_dns()
227 if (res->ai_family != AF_INET && in host_dns()
228 res->ai_family != AF_INET6) in host_dns()
232 h->ss.ss_family = res->ai_family; in host_dns()
233 if (res->ai_family == AF_INET) { in host_dns()
/freebsd/usr.sbin/nfsd/
H A Dnfsd.c323 hints.ai_family = AF_INET; in main()
347 hints.ai_family = AF_INET6; in main()
371 hints.ai_family = AF_INET; in main()
395 hints.ai_family = AF_INET6; in main()
509 hints.ai_family = AF_INET; in main()
515 if ((sock = socket(ai_udp->ai_family, in main()
543 hints.ai_family = AF_INET; in main()
581 hints.ai_family = AF_INET6; in main()
587 if ((sock = socket(ai_udp6->ai_family, in main()
623 hints.ai_family = AF_INET6; in main()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp211 int ai_family, int ai_socktype, int ai_protocol, in getaddrinfo()
215 auto addresses = GetAddressInfo(host, service, ai_family, ai_socktype, in getaddrinfo()
224 int ai_family, int ai_socktype, int ai_protocol, in GetAddressInfo()
230 hints.ai_family = ai_family; in GetAddressInfo()
209 getaddrinfo(const char * host,const char * service,int ai_family,int ai_socktype,int ai_protocol,int ai_flags) getaddrinfo() argument
222 GetAddressInfo(const char * hostname,const char * servname,int ai_family,int ai_socktype,int ai_protocol,int ai_flags) GetAddressInfo() argument
/freebsd/contrib/libpcap/
H A Dsockutils.c406 return addr_a->info->ai_family - addr_b->info->ai_family; in compare_addrs_to_try_by_address_family()
422 return addr_a->info->ai_family - addr_b->info->ai_family; in compare_addrs_to_try_by_status()
438 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, in sock_create_socket()
561 if (addrinfo->ai_family == PF_INET6) in sock_open()
672 current_af != tempaddrinfo->ai_family) in sock_open()
1160 if ((addrinfo->ai_family != PF_INET) && in sock_initaddress()
1161 (addrinfo->ai_family != PF_INET6)) in sock_initaddress()
1769 hints.ai_family = PF_UNSPEC; in sock_check_hostlist()
2094 hints.ai_family = addr_family; in sock_present2network()
2101 if (addrinfo->ai_family == PF_INET) in sock_present2network()
/freebsd/usr.sbin/rpc.statd/
H A Dstatd.c355 hints.ai_family = si.si_af; in create_service()
380 switch (hints.ai_family) { in create_service()
425 res->ai_family = hints.ai_family; in create_service()
427 switch (res->ai_family) { in create_service()
452 res->ai_family); in create_service()
583 hints.ai_family = si.si_af; in complete_service()
/freebsd/contrib/netbsd-tests/net/net/
H A Dt_udp.c26 hints.ai_family = family; in sendit()
36 S = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit()
45 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit()
/freebsd/usr.sbin/lpr/common_source/
H A Dnet.c99 hints.ai_family = family; in getport()
115 s = rresvport_af(&lport, ai->ai_family); in getport()
202 hints.ai_family = family; in checkremote()
214 hints.ai_family = family; in checkremote()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_util.c853 if (ai->ai_family == family) in ai_find_by_family()
892 if (ai->ai_family != ss.ss_family) { in test_ai_eq_()
894 ai->ai_family, ss.ss_family, line)); in test_ai_eq_()
1006 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
1017 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
1029 hints.ai_family = PF_INET; in test_evutil_getaddrinfo()
1049 hints.ai_family = PF_INET6; in test_evutil_getaddrinfo()
1059 hints.ai_family = PF_INET6; in test_evutil_getaddrinfo()
1069 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
1085 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
[all …]
/freebsd/contrib/libevent/test/
H A Dregress_util.c853 if (ai->ai_family == family) in ai_find_by_family()
892 if (ai->ai_family != ss.ss_family) { in test_ai_eq_()
894 ai->ai_family, ss.ss_family, line)); in test_ai_eq_()
1006 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
1017 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
1029 hints.ai_family = PF_INET; in test_evutil_getaddrinfo()
1049 hints.ai_family = PF_INET6; in test_evutil_getaddrinfo()
1059 hints.ai_family = PF_INET6; in test_evutil_getaddrinfo()
1069 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
1085 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
[all …]

1234567891011