/tools/perf/trace/beauty/ |
D | sockaddr.c | 54 …(&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/ |
D | udpgso.c | 512 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()
|
D | bind_wildcard.c | 120 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()
|
D | so_txtime.c | 288 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()
|
D | rxtimestamp.c | 306 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()
|
D | ip_defrag.c | 350 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()
|
D | nettest.c | 222 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()
|
D | ip_local_port_range.c | 89 switch (addr.sa.sa_family) { in get_sock_port()
|
/tools/testing/selftests/bpf/progs/ |
D | btf_type_tag_user.c | 38 g = usockaddr->sa_family; in BPF_PROG()
|
D | socket_cookie_prog.c | 84 if (uaddr->sa_family != AF_INET6) in BPF_PROG()
|
D | cgrp_ls_attach_cgroup.c | 88 if (uaddr->sa_family != AF_INET6) in BPF_PROG()
|
/tools/testing/selftests/bpf/ |
D | test_tcp_check_syncookie_user.c | 25 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()
|
D | test_flow_dissector.c | 124 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()
|
D | network_helpers.c | 86 fd = socket(addr->sa_family, type, protocol); in __start_server()
|
/tools/testing/vsock/ |
D | util.c | 191 if (clientaddr.sa.sa_family != AF_VSOCK) { in vsock_accept() 193 clientaddr.sa.sa_family); in vsock_accept()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | cls_redirect.c | 40 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()
|
D | sk_assign.c | 81 fd = socket(addr->sa_family, type, 0); in start_server() 105 fd = socket(addr->sa_family, type, 0); in connect_to_server()
|
/tools/hv/ |
D | hv_kvp_daemon.c | 861 (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/ |
D | mptcp_sockopt.c | 70 __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/ |
D | socket.h | 35 sa_family_t sa_family; /* address family, AF_xxx */ member
|
/tools/testing/selftests/nci/ |
D | nci_dev.c | 705 addr.sa_family = AF_NFC; in connect_socket()
|