Searched refs:ai_family (Results 1 - 25 of 241) sorted by relevance

12345678910

/freebsd-head/contrib/libpcap/rpcapd/
H A Dconfig_params.h48 int ai_family; // address faimly to use member in struct:active_pars
H A Drpcapd.c189 mainhints.ai_family = PF_UNSPEC;
209 mainhints.ai_family = PF_INET; // IPv4 server only
512 activelist[i].ai_family = mainhints.ai_family;
566 switch (tempaddrinfo->ai_family)
598 tempaddrinfo->ai_family,
1277 hints.ai_family = AF_INET; // PF_UNSPEC to have both IPv4 and IPv6 server
1279 hints.ai_family = activepars->ai_family;
1282 activepars->address, activepars->port, (hints.ai_family
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
H A Dunsup_fam.exp2 ai_family not supported
H A Dh_gai.c86 printf("%sfamily %d%s", start, res->ai_family, end);
117 ai.ai_family = PF_UNSPEC;
125 ai.ai_family = atoi(optarg);
146 ai.ai_family = PF_INET;
149 ai.ai_family = PF_INET6;
/freebsd-head/contrib/ntp/libntp/
H A Dntp_rfc2553.c239 "ai_family not supported", /* EAI_FAMILY */
257 int ai_family,
268 int ai_family,
307 ai->ai_family = hints->ai_family;
311 family = hints->ai_family;
408 if (ai->ai_family == AF_INET)
410 else if (ai->ai_family == AF_INET6)
484 if (ai->ai_family == AF_INET)
488 sockin->sin_family = (short) ai->ai_family;
266 DNSlookup_name( const char *name, int ai_family, struct hostent **Addresses ) argument
[all...]
/freebsd-head/contrib/ofed/librdmacm/
H A Daddrinfo.c56 if (rai->ai_family != AF_IB)
57 ai->ai_family = rai->ai_family;
181 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) &&
183 rai->ai_family = AF_IB;
190 rai->ai_family = ai->ai_family;
198 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) &&
200 rai->ai_family = AF_IB;
207 rai->ai_family
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Dgetaddrinfo-test.c78 hints.ai_family = family;
91 if (inet_ntop (r->ai_family,
101 r->ai_family, r->ai_socktype, r->ai_protocol,
H A Dmini_inetd.c110 fds[i] = socket (a->ai_family, a->ai_socktype, a->ai_protocol);
116 warn ("bind af = %d", a->ai_family);
122 warn ("listen af = %d", a->ai_family);
185 hints.ai_family = PF_UNSPEC;
H A Dgetaddrinfo.c138 a->ai_family = PF_INET;
158 a->ai_family = PF_INET6;
194 family = hints->ai_family;
282 family = hints->ai_family;
324 family = hints->ai_family;
361 * int ai_family;
385 && hints->ai_family != PF_UNSPEC
386 && hints->ai_family != PF_INET
388 && hints->ai_family != PF_INET6
/freebsd-head/usr.bin/logger/
H A Dlogger.c266 .ai_family = family,
274 switch (res->ai_family) {
279 if (ss_src[res->ai_family] != NULL)
281 ss_src[res->ai_family] =
283 if (ss_src[res->ai_family] == NULL)
285 memcpy(ss_src[res->ai_family], res->ai_addr,
295 .ai_family = family,
315 s = socket(res->ai_family, res->ai_socktype,
319 if (src && ss_src[res->ai_family] == NULL)
322 if (ss_src[res->ai_family]) {
[all...]
/freebsd-head/contrib/netbsd-tests/net/sys/
H A Dt_rfc6056.c59 hints.ai_family = family;
80 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
89 ss.ss_family = res->ai_family;
101 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
/freebsd-head/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c73 hints.ai_family = AF_UNSPEC;
85 if (!parse_af(optarg, &hints.ai_family)) {
282 if ((ai->ai_family >= 0) &&
283 ((size_t)ai->ai_family < __arraycount(address_families)) &&
284 (address_families[ai->ai_family] != NULL))
285 n = printf(" %s", address_families[ai->ai_family]);
287 n = printf(" %d", ai->ai_family);
301 switch (ai->ai_family) {
/freebsd-head/usr.sbin/pnfsdscopymr/
H A Dpnfsdscopymr.c185 hints.ai_family = PF_UNSPEC;
193 nres->ai_family) {
199 if (nres->ai_family == AF_INET &&
206 } else if (nres->ai_family ==
247 hints.ai_family = PF_UNSPEC;
256 nres->ai_family) {
260 if (nres->ai_family == AF_INET &&
269 } else if (nres->ai_family ==
/freebsd-head/contrib/netbsd-tests/net/net/
H A Dt_udp.c26 hints.ai_family = family;
36 S = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
45 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
/freebsd-head/contrib/bsnmp/lib/
H A Dsupport.c138 if (hent->h_addrtype != hints->ai_family)
147 (*res)->ai_family = hints->ai_family;
158 s->sin_family = hints->ai_family;
H A Dsupport.h55 int ai_family; member in struct:addrinfo
/freebsd-head/lib/libc/tests/nss/
H A Dgetaddrinfo_test.c103 ai1->ai_family != ai2->ai_family ||
165 ai->ai_flags, ai->ai_family, ai->ai_socktype, ai->ai_protocol,
356 if (!(ai->ai_family >= 0 && ai->ai_family < AF_MAX))
371 ai->ai_family != ai->ai_addr->sa_family)
413 run_tests(char *hostlist_file, const char *snapshot_file, int ai_family) argument
427 hints.ai_family = ai_family;
492 #define RUN_TESTS(tc, snapshot_file, ai_family) d
[all...]
/freebsd-head/lib/libc/net/
H A Dgetaddrinfo.c419 pai->ai_family = PF_UNSPEC;
436 switch (hints->ai_family) {
455 if (!MATCH_FAMILY(pai->ai_family, ex->e_af,
483 if (pai->ai_family != AF_INET6)
497 if (MATCH_FAMILY(pai->ai_family, PF_INET, 1)
499 || MATCH_FAMILY(pai->ai_family, PF_INET6, 1)
504 if (pai->ai_family == PF_UNSPEC) {
506 pai->ai_family = PF_INET6;
508 pai->ai_family = PF_INET;
529 if (!MATCH_FAMILY(pai->ai_family, af
1747 int ai_flags, ai_family, ai_socktype, ai_protocol; local
[all...]
/freebsd-head/crypto/heimdal/lib/ipc/
H A Dts-http.c82 hints.ai_family = PF_UNSPEC;
90 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
/freebsd-head/usr.sbin/ypldap/
H A Dypldap_dns.c216 hints.ai_family = PF_UNSPEC;
228 if (res->ai_family != AF_INET &&
229 res->ai_family != AF_INET6)
233 h->ss.ss_family = res->ai_family;
234 if (res->ai_family == AF_INET) {
/freebsd-head/contrib/tcp_wrappers/
H A Dscaffold.c89 hints.ai_family = PF_UNSPEC;
96 hints.ai_family = PF_UNSPEC;
103 if (res->ai_family != AF_INET6 && res->ai_family != AF_INET) {
104 tcpd_warn("%d: not an internet host", res->ai_family);
/freebsd-head/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp215 int ai_family, int ai_socktype, int ai_protocol,
219 auto addresses = GetAddressInfo(host, service, ai_family, ai_socktype,
228 int ai_family, int ai_socktype, int ai_protocol,
234 hints.ai_family = ai_family;
214 getaddrinfo(const char *host, const char *service, int ai_family, int ai_socktype, int ai_protocol, int ai_flags) argument
227 GetAddressInfo(const char *hostname, const char *servname, int ai_family, int ai_socktype, int ai_protocol, int ai_flags) argument
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c35 * that ai_family is AF_INET. Don't use it for another purpose.
101 return ("ai_family not supported");
137 ai->ai_addr->sa_family = ai->ai_family = AF_INET;
166 if (hints && hints->ai_family != AF_UNSPEC &&
167 hints->ai_family != AF_INET)
/freebsd-head/usr.bin/finger/
H A Dnet.c80 hint.ai_family = family;
120 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
122 warn("socket(%d, %d, %d)", ai->ai_family, ai->ai_socktype,
/freebsd-head/usr.sbin/nfsd/
H A Dnfsd.c327 hints.ai_family = AF_INET;
351 hints.ai_family = AF_INET6;
375 hints.ai_family = AF_INET;
399 hints.ai_family = AF_INET6;
499 hints.ai_family = AF_INET;
505 if ((sock = socket(ai_udp->ai_family,
533 hints.ai_family = AF_INET;
565 hints.ai_family = AF_INET6;
571 if ((sock = socket(ai_udp6->ai_family,
607 hints.ai_family
[all...]

Completed in 327 milliseconds

12345678910