Home
last modified time | relevance | path

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

1234

/external/libpcap/Win32/Src/
Dgetaddrinfo.c331 pai->ai_family = PF_UNSPEC;
348 switch (hints->ai_family) {
366 if (pai->ai_family != ex->e_af)
385 if (MATCH_FAMILY(pai->ai_family, PF_INET, 1)
387 || MATCH_FAMILY(pai->ai_family, PF_INET6, 1)
392 if (pai->ai_family == PF_UNSPEC) {
394 pai->ai_family = PF_INET6;
396 pai->ai_family = PF_INET;
412 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex)))
419 if (pai->ai_family == PF_UNSPEC)
[all …]
/external/android-clat/
Ddns64.c40 .ai_family = AF_INET6, in plat_prefix()
60 if (result->ai_family != AF_INET6) { in plat_prefix()
61 logmsg(ANDROID_LOG_WARN, "plat_prefix/unexpected address family: %d", result->ai_family); in plat_prefix()
/external/boringssl/src/tool/
Dtransport_common.cc86 hint.ai_family = AF_UNSPEC; in Connect()
99 socket(result->ai_family, result->ai_socktype, result->ai_protocol); in Connect()
105 switch (result->ai_family) { in Connect()
110 inet_ntop(result->ai_family, &sin->sin_addr, buf, sizeof(buf)), in Connect()
118 inet_ntop(result->ai_family, &sin6->sin6_addr, buf, sizeof(buf)), in Connect()
/external/iputils/
Dtracepath6.c437 hints.ai_family = family; in main()
452 if (family && ai->ai_family != family) in main()
454 if (ai->ai_family != AF_INET6 && in main()
455 ai->ai_family != AF_INET) in main()
457 family = ai->ai_family; in main()
458 fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in main()
/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.h142 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/boringssl/src/crypto/bio/
Dsocket_helper.c48 hint.ai_family = AF_UNSPEC; in bio_ip_and_port_to_socket_and_addr()
68 *out_sock = socket(cur->ai_family, cur->ai_socktype, cur->ai_protocol); in bio_ip_and_port_to_socket_and_addr()
/external/libvncserver/x11vnc/
Dinet.c591 hints.ai_family = AF_INET6; in listen6()
612 rfbLog("listen6: checking: %s family: %d\n", s, ap->ai_family); in listen6()
613 if (ap->ai_family == AF_INET6) { in listen6()
759 hints.ai_family = AF_UNSPEC; in connect_tcp()
803 if (ap->ai_family != AF_INET6) { in connect_tcp()
818 sock = socket(ap->ai_family, ap->ai_socktype, ap->ai_protocol); in connect_tcp()
829 sock, ap->ai_family, ap->ai_protocol, s); in connect_tcp()
/external/toybox/toys/other/
Dnbd_client.c57 hints.ai_family = PF_UNSPEC; in nbd_client_main()
61 sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol); in nbd_client_main()
/external/ipsec-tools/src/racoon/
Dkmpstat.c216 hint.ai_family = PF_UNSPEC;
217 hint.ai_family = family;
/external/toybox/toys/pending/
Dtelnet.c63 rp->ai_family = AF_UNSPEC;
73 if ( (rp->ai_family == AF_INET) || (rp->ai_family == AF_INET6)) break;
77 ret = xsocket(rp->ai_family, SOCK_STREAM, IPPROTO_TCP);
Dhost.c85 if (ai->ai_family == AF_INET) { in host_main()
89 } else if (ai->ai_family == AF_INET6) { in host_main()
124 int s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in host_main()
Dtcpsvd.c237 hints.ai_family = AF_UNSPEC; in create_bind_sock()
243 if ( (rp->ai_family == AF_INET) || (rp->ai_family == AF_INET6)) break; in create_bind_sock()
247 sockfd = xsocket(rp->ai_family, TT.udp ?SOCK_DGRAM :SOCK_STREAM, 0); in create_bind_sock()
/external/iptables/libxtables/
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()
672 struct addrinfo hints = {.ai_family = afinfo->family, in xtopt_parse_mask()
681 memcpy(&cb->val.hmask, xtables_sa_host(res->ai_addr, res->ai_family), in xtopt_parse_mask()
682 xtables_sa_hostlen(res->ai_family)); in xtopt_parse_mask()
/external/libvncserver/libvncclient/
Dsockets.c355 hints.ai_family = AF_UNSPEC; in ConnectClientToTcpAddr6()
367 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in ConnectClientToTcpAddr6()
531 hints.ai_family = AF_UNSPEC; in ListenAtTcpPortAndAddress()
545 if ((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) < 0) { in ListenAtTcpPortAndAddress()
551 …if (p->ai_family == AF_INET6 && setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&one, sizeof(o… in ListenAtTcpPortAndAddress()
/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/tcpdump/missing/
Daddrinfo.h73 int ai_family; /* PF_xxx */ member
/external/libpcap/Win32/Include/
Daddrinfo.h73 int ai_family; /* PF_xxx */ member
/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/openssh/
Dsshconnect.c278 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in ssh_create_socket()
291 hints.ai_family = ai->ai_family; in ssh_create_socket()
312 error("bindresvport_sa: af=%d %s", ai->ai_family, in ssh_create_socket()
448 if (ai->ai_family != AF_INET && in ssh_connect_direct()
449 ai->ai_family != AF_INET6) in ssh_connect_direct()
Dchannels.c2832 hints.ai_family = IPv4or6;
2850 switch (ai->ai_family) {
2876 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
2884 if (ai->ai_family == AF_INET6)
3612 switch (cctx->ai->ai_family) {
3631 if ((sock = socket(cctx->ai->ai_family, cctx->ai->ai_socktype,
3651 if (cctx->ai->ai_family != AF_UNIX)
3666 if (cctx->aitop->ai_family == AF_UNIX)
3705 ai->ai_family = AF_UNIX;
3714 hints.ai_family = IPv4or6;
[all …]
Daudit-bsm.c151 switch (ai->ai_family) { in aug_get_machine()
166 host, ai->ai_family); in aug_get_machine()
/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/libvncserver/libvncserver/
Dsockets.c877 hints.ai_family = AF_INET6; in rfbListenOnTCP6Port()
888 if ((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) < 0) { in rfbListenOnTCP6Port()
950 hints.ai_family = AF_UNSPEC; in rfbConnectToTcpAddr()
960 if ((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) < 0) in rfbConnectToTcpAddr()

1234