Home
last modified time | relevance | path

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

123

/external/qemu/
Dqemu-sockets.c70 switch (e->ai_family) { in inet_getport()
87 switch (e->ai_family) { in inet_setport()
120 tag, inet_strfamily(e->ai_family), uaddr, uport); in inet_print_addrinfo()
135 ai.ai_family = PF_UNSPEC; in inet_listen_opts()
155 ai.ai_family = PF_INET; in inet_listen_opts()
157 ai.ai_family = PF_INET6; in inet_listen_opts()
176 slisten = qemu_socket(e->ai_family, e->ai_socktype, e->ai_protocol); in inet_listen_opts()
179 inet_strfamily(e->ai_family), strerror(errno)); in inet_listen_opts()
185 if (e->ai_family == PF_INET6) { in inet_listen_opts()
196 inet_strfamily(e->ai_family), uaddr, inet_getport(e)); in inet_listen_opts()
[all …]
Dsockets.c637 hints->ai_family = preferIn6 ? AF_INET6 : AF_UNSPEC; in sock_address_init_resolve()
677 if (r->ai_family == AF_INET && res_ipv4 == NULL) { in sock_address_init_resolve()
682 else if (r->ai_family == AF_INET6 && res_ipv6 == NULL) { in sock_address_init_resolve()
742 ai.ai_family = PF_UNSPEC; in sock_address_list_create()
745 ai.ai_family = PF_INET; in sock_address_list_create()
747 ai.ai_family = PF_INET6; in sock_address_list_create()
/external/tcpdump/missing/
Dgetaddrinfo.c319 pai->ai_family = PF_UNSPEC;
336 switch (hints->ai_family) {
354 if (pai->ai_family != ex->e_af)
373 if (MATCH_FAMILY(pai->ai_family, PF_INET, 1)
375 || MATCH_FAMILY(pai->ai_family, PF_INET6, 1)
380 if (pai->ai_family == PF_UNSPEC) {
382 pai->ai_family = PF_INET6;
384 pai->ai_family = PF_INET;
400 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex)))
407 if (pai->ai_family == PF_UNSPEC)
[all …]
Daddrinfo.h73 int ai_family; /* PF_xxx */ member
/external/chromium/net/base/
Dhost_resolver_proc.cc27 switch (ai->ai_family) { in IsAllLocalhostOfOneFamily()
146 hints.ai_family = AF_INET; in SystemHostResolverProc()
149 hints.ai_family = AF_INET6; in SystemHostResolverProc()
152 hints.ai_family = AF_UNSPEC; in SystemHostResolverProc()
156 hints.ai_family = AF_UNSPEC; in SystemHostResolverProc()
218 if ((hints.ai_family != AF_UNSPEC || hints.ai_flags & AI_ADDRCONFIG) && in SystemHostResolverProc()
221 hints.ai_family = AF_UNSPEC; in SystemHostResolverProc()
Daddress_list.cc62 ai->ai_family = AF_INET; in AddressList()
75 ai->ai_family = AF_INET6; in AddressList()
205 ai->ai_family = sin->sin_family; in CreateAddressListFromSockaddr()
206 DCHECK_EQ(AF_INET, ai->ai_family); in CreateAddressListFromSockaddr()
213 ai->ai_family = sin6->sin6_family; in CreateAddressListFromSockaddr()
214 DCHECK_EQ(AF_INET6, ai->ai_family); in CreateAddressListFromSockaddr()
Daddress_list_unittest.cc137 ai.ai_family = AF_INET; in TEST()
205 EXPECT_EQ(good_ai->ai_family, test_ai->ai_family); in TEST()
248 EXPECT_EQ(good_ai->ai_family, test_ai->ai_family); in TEST()
/external/chromium/net/websockets/
Dwebsocket_throttle.cc24 switch (addrinfo->ai_family) { in AddrinfoToHashkey()
29 addrinfo->ai_family, in AddrinfoToHashkey()
37 addrinfo->ai_family, in AddrinfoToHashkey()
43 addrinfo->ai_family, in AddrinfoToHashkey()
/external/chromium/net/socket/
Dtransport_client_socket_pool_unittest.cc74 if (addrlist_.head()->ai_family == AF_INET) in GetLocalAddress()
198 if (addrlist_.head()->ai_family == AF_INET) in GetLocalAddress()
418 EXPECT_EQ(AF_INET, ai->ai_family); in TEST()
420 EXPECT_EQ(AF_INET, ai->ai_family); in TEST()
428 EXPECT_EQ(AF_INET6, ai->ai_family); in TEST()
430 EXPECT_EQ(AF_INET6, ai->ai_family); in TEST()
440 EXPECT_EQ(AF_INET, ai->ai_family); in TEST()
442 EXPECT_EQ(AF_INET, ai->ai_family); in TEST()
444 EXPECT_EQ(AF_INET6, ai->ai_family); in TEST()
446 EXPECT_EQ(AF_INET6, ai->ai_family); in TEST()
[all …]
Dtransport_client_socket_pool.cc35 if (ai->ai_family != AF_INET6) in AddressListStartsWithIPv6AndHasAnIPv4Addr()
40 if (ai->ai_family != AF_INET6) in AddressListStartsWithIPv6AndHasAnIPv4Addr()
51 if (ai->ai_family != AF_INET6) in AddressListOnlyContainsIPv6Addresses()
156 if (addrlist->head()->ai_family != AF_INET6) in MakeAddrListStartWithIPv4()
160 if (ai->ai_family != AF_INET6) { in MakeAddrListStartWithIPv4()
174 while (head->ai_family == AF_INET6) { in MakeAddrListStartWithIPv4()
265 bool is_ipv4 = addresses_.head()->ai_family != AF_INET6; in DoTransportConnectComplete()
/external/chromium/net/tools/flip_server/
Dcreate_listener.cc128 hints.ai_family = PF_INET; in CreateListeningSocket()
141 int sock = socket(results->ai_family, in CreateListeningSocket()
251 hints.ai_family = PF_INET; in CreateConnectedSocket()
264 int sock = socket(results->ai_family, in CreateConnectedSocket()
/external/openssh/openbsd-compat/
Dfake-rfc2553.c137 ai->ai_addr->sa_family = ai->ai_family = AF_INET; in malloc_ai()
166 if (hints && hints->ai_family != AF_UNSPEC && in getaddrinfo()
167 hints->ai_family != AF_INET) in getaddrinfo()
Dfake-rfc2553.h139 int ai_family; /* PF_xxx */ member
/external/netcat/
Dnetcat.c332 hints.ai_family = family; in main()
361 proxyhints.ai_family = family; in main()
600 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
621 ahints.ai_family = res0->ai_family; in remote_connect()
707 if (host == NULL && hints.ai_family == AF_UNSPEC) in local_listen()
708 hints.ai_family = AF_INET; in local_listen()
715 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
/external/ipsec-tools/src/racoon/
Dkmpstat.c216 hint.ai_family = PF_UNSPEC;
217 hint.ai_family = family;
/external/openssh/
Dsshconnect.c200 sock = rresvport_af(&p, ai->ai_family); in ssh_create_socket()
203 error("rresvport: af=%d %.100s", ai->ai_family, in ssh_create_socket()
209 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in ssh_create_socket()
221 hints.ai_family = ai->ai_family; in ssh_create_socket()
356 hints.ai_family = family; in ssh_connect()
374 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) in ssh_connect()
Dchannels.c2700 hints.ai_family = IPv4or6;
2719 switch (ai->ai_family) {
2745 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
2753 if (ai->ai_family == AF_INET6)
3084 if (cctx->ai->ai_family != AF_INET &&
3085 cctx->ai->ai_family != AF_INET6)
3093 if ((sock = socket(cctx->ai->ai_family, cctx->ai->ai_socktype,
3146 hints.ai_family = IPv4or6;
3269 hints.ai_family = IPv4or6;
3278 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
[all …]
Daudit-bsm.c141 switch (ai->ai_family) { in aug_get_machine()
156 host, ai->ai_family); in aug_get_machine()
/external/opencv/otherlibs/highgui/
Dcvcap_socket.cpp126 hints.ai_family = AF_UNSPEC; // use IPv4 or IPv6, whichever in open()
218 int sockd = socket(pAddrInfo->ai_family, pAddrInfo->ai_socktype, pAddrInfo->ai_protocol); in grabFrame()
/external/dropbear/
Ddbutil.c199 hints.ai_family = AF_UNSPEC; /* TODO: let them flag v4 only etc */ in dropbear_listen()
238 socks[nsock] = socket(res->ai_family, res->ai_socktype, in dropbear_listen()
318 hints.ai_family = PF_UNSPEC; in connect_remote()
336 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in connect_remote()
Dfake-rfc2553.h126 int ai_family; /* PF_xxx */ member
/external/iptables/iptables/
Dxtoptions.c516 struct addrinfo hints = {.ai_family = afinfo->family}; in xtopt_parse_host()
533 xtables_sa_host(p->ai_addr, p->ai_family), in xtopt_parse_host()
534 xtables_sa_hostlen(p->ai_family)); in xtopt_parse_host()
539 xtables_sa_host(p->ai_addr, p->ai_family), in xtopt_parse_host()
540 xtables_sa_hostlen(p->ai_family)) != 0) in xtopt_parse_host()
569 if (p->ai_family == AF_INET6) { in xtables_getportbyname()
572 } else if (p->ai_family == AF_INET) { in xtables_getportbyname()
/external/netperf/
Dnettest_sdp.c297 local_res->ai_family = AF_INET_SDP; in send_sdp_stream()
392 sdp_stream_request->ipfamily = af_to_nf(remote_res->ai_family); in send_sdp_stream()
994 local_res->ai_family = AF_INET_SDP; in send_sdp_maerts()
1089 sdp_maerts_request->ipfamily = af_to_nf(remote_res->ai_family); in send_sdp_maerts()
1670 local_res->ai_family = AF_INET_SDP; in recv_sdp_stream()
2005 local_res->ai_family = AF_INET_SDP; in recv_sdp_maerts()
2438 local_res->ai_family = AF_INET_SDP; in send_sdp_rr()
2493 sdp_rr_request->ipfamily = af_to_nf(remote_res->ai_family); in send_sdp_rr()
3110 local_res->ai_family = AF_INET_SDP; in recv_sdp_rr()
/external/mtpd/
Dmtpd.c265 .ai_family = family, in create_socket()
282 int s = socket(r->ai_family, r->ai_socktype, r->ai_protocol); in create_socket()
/external/dbus/dbus/
Ddbus-sysdeps-win.c1273 hints.ai_family = AF_UNSPEC; in _dbus_connect_tcp_socket_with_nonce()
1275 hints.ai_family = AF_INET; in _dbus_connect_tcp_socket_with_nonce()
1277 hints.ai_family = AF_INET6; in _dbus_connect_tcp_socket_with_nonce()
1305 if ((fd = socket (tmp->ai_family, SOCK_STREAM, 0)) == INVALID_SOCKET) in _dbus_connect_tcp_socket_with_nonce()
1416 hints.ai_family = AF_UNSPEC; in _dbus_listen_tcp_socket()
1418 hints.ai_family = AF_INET; in _dbus_listen_tcp_socket()
1420 hints.ai_family = AF_INET6; in _dbus_listen_tcp_socket()
1451 if ((fd = socket (tmp->ai_family, SOCK_STREAM, 0)) == INVALID_SOCKET) in _dbus_listen_tcp_socket()

123