Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_inq.c99 hints.ai_family = pf; in sock_listen_mptcp()
105 hints.ai_family = pf; in sock_listen_mptcp()
108 sock = socket(a->ai_family, a->ai_socktype, proto_rx); in sock_listen_mptcp()
145 hints.ai_family = pf; in sock_connect_mptcp()
149 sock = socket(a->ai_family, a->ai_socktype, proto); in sock_connect_mptcp()
H A Dmptcp_sockopt.c186 hints.ai_family = pf; in sock_listen_mptcp()
192 hints.ai_family = pf; in sock_listen_mptcp()
195 sock = socket(a->ai_family, a->ai_socktype, IPPROTO_MPTCP); in sock_listen_mptcp()
232 hints.ai_family = pf; in sock_connect_mptcp()
236 sock = socket(a->ai_family, a->ai_socktype, proto); in sock_connect_mptcp()
H A Dmptcp_connect.c298 hints.ai_family = pf; in sock_listen_mptcp()
304 hints.ai_family = pf; in sock_listen_mptcp()
307 sock = socket(a->ai_family, a->ai_socktype, cfg_sock_proto); in sock_listen_mptcp()
364 hints.ai_family = pf; in sock_connect_mptcp()
368 sock = socket(a->ai_family, a->ai_socktype, proto); in sock_connect_mptcp()
/linux/tools/usb/usbip/src/
H A Dusbipd.c390 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in listen_all_addrinfo()
426 static struct addrinfo *do_getaddrinfo(char *host, int ai_family) in do_getaddrinfo() argument
432 hints.ai_family = ai_family; in do_getaddrinfo()
H A Dusbip_network.c268 hints.ai_family = AF_UNSPEC; in usbip_net_tcp_connect()
281 sockfd = socket(rp->ai_family, rp->ai_socktype, in usbip_net_tcp_connect()
/linux/tools/testing/selftests/net/
H A Dtxtimestamp.c837 struct addrinfo hints = { .ai_family = do_ipv4 ? AF_INET : AF_INET6 }; in resolve_hostname()
847 if (!have_ipv4 && cur->ai_family == AF_INET) { in resolve_hostname()
852 else if (!have_ipv6 && cur->ai_family == AF_INET6) { in resolve_hostname()
862 if (do_ipv6 && hints.ai_family != AF_INET6) { in resolve_hostname()
863 hints.ai_family = AF_INET6; in resolve_hostname()
H A Dcmsg_sender.c452 hints.ai_family = opt.sock.family; in main()
462 if (ai->ai_family == AF_INET6 && opt.sock.proto == IPPROTO_ICMP) in main()
465 fd = socket(ai->ai_family, opt.sock.type, opt.sock.proto); in main()
H A Dbind_bhash.c42 hint.ai_family = domain; in bind_socket()
/linux/tools/testing/vsock/
H A Dcontrol.c55 fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in control_init()
/linux/tools/testing/selftests/bpf/
H A Dxdping.c90 struct addrinfo *a, hints = { .ai_family = AF_INET }; in main()
/linux/arch/um/drivers/
H A Dvector_user.c635 dsthints.ai_family = AF_INET6; in user_init_socket_fds()
637 dsthints.ai_family = AF_INET; in user_init_socket_fds()
667 fd = socket(gairesult->ai_family, in user_init_socket_fds()
/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c1250 sk = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in tcp_client()
/linux/tools/hv/
H A Dhv_kvp_daemon.c1646 hints.ai_family = AF_INET; /*Get only ipv4 addrinfo. */ in kvp_get_domain_name()