Home
last modified time | relevance | path

Searched refs:sa_family (Results 1 – 21 of 21) sorted by relevance

/tools/perf/trace/beauty/
Dsockaddr.c54 …(&strarray__socket_families, family, sizeof(family), "%d", arg->show_string_prefix, sa->sa_family); in syscall_arg__scnprintf_augmented_sockaddr()
57 if (sa->sa_family < ARRAY_SIZE(af_scnprintfs) && af_scnprintfs[sa->sa_family]) in syscall_arg__scnprintf_augmented_sockaddr()
58 printed += af_scnprintfs[sa->sa_family](sa, bf + printed, size - printed); in syscall_arg__scnprintf_augmented_sockaddr()
/tools/testing/selftests/net/
Dudpgso.c512 addr->sa_family == AF_INET ? 4 : 6, in run_one()
533 mss = addr->sa_family == AF_INET ? CONST_MSS_V4 : CONST_MSS_V6; in run_one()
561 tests = addr->sa_family == AF_INET ? testcases_v4 : testcases_v6; in run_all()
576 fdr = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
587 fdt = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
592 set_pmtu_discover(fdt, addr->sa_family == AF_INET); in run_test()
601 set_route_mtu(CONST_MTU_TEST, addr->sa_family == AF_INET); in run_test()
606 val = get_path_mtu(fdt, addr->sa_family == AF_INET); in run_test()
Dbind_wildcard.c120 fd[0] = socket(addr1->sa_family, SOCK_STREAM, 0); in bind_sockets()
131 fd[1] = socket(addr2->sa_family, SOCK_STREAM, 0); in bind_sockets()
Dso_txtime.c288 fd = socket(addr->sa_family, SOCK_DGRAM, 0); in setup_tx()
309 fd = socket(addr->sa_family, SOCK_DGRAM, 0); in setup_rx()
327 addr->sa_family == PF_INET ? '4' : '6', in do_test_tx()
Drxtimestamp.c306 src = socket(addr.addr_un.sa_family, s->type, in run_test_case()
311 dst = socket(addr.addr_un.sa_family, s->type, in run_test_case()
Dip_defrag.c350 fd_tx_raw = socket(addr->sa_family, SOCK_RAW, IPPROTO_RAW); in run_test()
354 fd_rx_udp = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
Dnettest.c222 if (sa->sa_family == AF_INET) { in log_address()
231 } else if (sa->sa_family == AF_INET6) { in log_address()
681 if (sa->sa_family == AF_INET) { in expected_addr_match()
692 } else if (sa->sa_family == AF_INET6) { in expected_addr_match()
1101 if (sa->sa_family == AF_INET6) { in socket_read_dgram()
Dip_local_port_range.c89 switch (addr.sa.sa_family) { in get_sock_port()
/tools/testing/selftests/bpf/progs/
Dbtf_type_tag_user.c38 g = usockaddr->sa_family; in BPF_PROG()
Dsocket_cookie_prog.c84 if (uaddr->sa_family != AF_INET6) in BPF_PROG()
Dcgrp_ls_attach_cgroup.c88 if (uaddr->sa_family != AF_INET6) in BPF_PROG()
/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c25 fd = socket(addr->sa_family, SOCK_STREAM, 0); in start_server()
31 if (addr->sa_family == AF_INET6) { in start_server()
62 fd = socket(addr->sa_family, SOCK_STREAM, 0); in connect_to_server()
Dtest_flow_dissector.c124 switch (addr->sa_family) { in util_printaddr()
133 addr->sa_family); in util_printaddr()
136 if (!inet_ntop(addr->sa_family, ((void *) addr) + off, nbuf, in util_printaddr()
Dnetwork_helpers.c86 fd = socket(addr->sa_family, type, protocol); in __start_server()
/tools/testing/vsock/
Dutil.c191 if (clientaddr.sa.sa_family != AF_VSOCK) { in vsock_accept()
193 clientaddr.sa.sa_family); in vsock_accept()
/tools/testing/selftests/bpf/prog_tests/
Dcls_redirect.c40 int fd = socket(addr->sa_family, type, 0); in start_server()
58 int fd = socket(addr->sa_family, type, 0); in connect_to_server()
76 switch (sa->sa_family) { in fill_addr_port()
Dsk_assign.c81 fd = socket(addr->sa_family, type, 0); in start_server()
105 fd = socket(addr->sa_family, type, 0); in connect_to_server()
/tools/hv/
Dhv_kvp_daemon.c861 (curp->ifa_addr->sa_family != family))) || in kvp_get_ip_info()
866 if ((curp->ifa_addr->sa_family != AF_INET) && in kvp_get_ip_info()
867 (curp->ifa_addr->sa_family != AF_INET6)) { in kvp_get_ip_info()
877 if (curp->ifa_addr->sa_family == AF_INET) { in kvp_get_ip_info()
928 curp->ifa_addr->sa_family, in kvp_get_ip_info()
/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.c70 __kernel_sa_family_t sa_family; member
485 assert(addrs.addr[0].sa_family == pf); in do_getsockopt_subflow_addrs()
486 assert(addrs.addr[0].sa_family == local.ss_family); in do_getsockopt_subflow_addrs()
/tools/perf/trace/beauty/include/linux/
Dsocket.h35 sa_family_t sa_family; /* address family, AF_xxx */ member
/tools/testing/selftests/nci/
Dnci_dev.c705 addr.sa_family = AF_NFC; in connect_socket()