/tools/testing/selftests/bpf/progs/ |
D | socket_cookie_prog.c | 10 #define AF_INET6 10 macro 37 if (ctx->family != AF_INET6 || ctx->user_family != AF_INET6) in set_cookie() 57 if (ctx->family != AF_INET6) in update_cookie_sockops() 84 if (uaddr->sa_family != AF_INET6) in BPF_PROG()
|
D | netns_cookie_prog.c | 7 #define AF_INET6 10 macro 37 if (ctx->family != AF_INET6) in get_netns_cookie_sockops() 68 if (msg->family != AF_INET6) in get_netns_cookie_sk_msg()
|
D | bind_perm.c | 42 return bind_prog(ctx, AF_INET6); in bind_v6_prog()
|
D | bpf_iter_bpf_sk_storage_map.c | 29 if (sk->sk_family == AF_INET6) in dump_bpf_sk_storage_map()
|
/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 61 case AF_INET6: in new_any_sockaddr() 63 addr6->sin6_family = AF_INET6; in new_any_sockaddr() 84 case AF_INET6: in new_loopback_sockaddr() 505 .recv_family = AF_INET6, in main() 506 .send_family = AF_INET6, in main() 512 .recv_family = AF_INET6, in main() 513 .send_family = AF_INET6, in main() 519 .recv_family = AF_INET6, in main() 520 .send_family = AF_INET6, in main() 526 .recv_family = AF_INET6, in main() [all …]
|
D | reuseport_addr_any.c | 55 case AF_INET6: in build_rcv_fd() 56 addr6.sin6_family = AF_INET6; in build_rcv_fd() 125 case AF_INET6: in connect_and_send() 126 saddr6.sin6_family = AF_INET6; in connect_and_send() 129 daddr6.sin6_family = AF_INET6; in connect_and_send() 234 build_rcv_fd(AF_INET6, proto, rcv_fds + 2, 2, NULL); in run_one_test() 237 build_rcv_fd(AF_INET6, proto, rcv_fds + 7, 2, NULL); in run_one_test() 264 run_one_test(AF_INET6, AF_INET6, proto, IP6_ADDR); in test_proto() 267 run_one_test(AF_INET, AF_INET6, proto, IP4_MAPPED6); in test_proto()
|
D | reuseport_dualstack.c | 45 case AF_INET6: in build_rcv_fd() 47 addr6->sin6_family = AF_INET6; in build_rcv_fd() 165 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[5]), 5); in main() 171 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 5); in main() 182 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[16]), 16); in main() 188 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 16); in main() 196 build_rcv_fd(AF_INET6, SOCK_STREAM, &(rcv_fds[5]), 5); in main() 202 build_rcv_fd(AF_INET6, SOCK_STREAM, rcv_fds, 5); in main()
|
D | reuseport_bpf_numa.c | 45 case AF_INET6: in build_rcv_group() 47 addr6->sin6_family = AF_INET6; in build_rcv_group() 126 case AF_INET6: in send_from_node() 128 saddr6->sin6_family = AF_INET6; in send_from_node() 133 daddr6->sin6_family = AF_INET6; in send_from_node() 246 test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM); in main() 252 test(rcv_fd, nodes, AF_INET6, SOCK_STREAM); in main()
|
D | reuseport_bpf_cpu.c | 49 case AF_INET6: in build_rcv_group() 51 addr6->sin6_family = AF_INET6; in build_rcv_group() 114 case AF_INET6: in send_from_cpu() 116 saddr6->sin6_family = AF_INET6; in send_from_cpu() 121 daddr6->sin6_family = AF_INET6; in send_from_cpu() 247 test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM); in main() 253 test(rcv_fd, cpus, AF_INET6, SOCK_STREAM); in main()
|
D | tcp_fastopen_backup_key.c | 108 case AF_INET6: in build_rcv_fd() 109 addr6.sin6_family = AF_INET6; in build_rcv_fd() 168 case AF_INET6: in connect_and_send() 169 saddr6.sin6_family = AF_INET6; in connect_and_send() 172 daddr6.sin6_family = AF_INET6; in connect_and_send() 329 run_one_test(AF_INET6); in main()
|
D | reuseaddr_conflict.c | 29 int family = ipv6 ? AF_INET6 : AF_INET; in open_port() 32 .sin6_family = AF_INET6, in open_port()
|
D | nettest.c | 224 } else if (sa->sa_family == AF_INET6) { in log_address() 229 inet_ntop(AF_INET6, &s6->sin6_addr, addrstr, in log_address() 305 .sin6_family = AF_INET6, in tcp_md5_remote() 317 case AF_INET6: in tcp_md5_remote() 470 if (version == AF_INET6) { in set_unicast_if() 620 } else if (sa->sa_family == AF_INET6) { in expected_addr_match() 627 inet_ntop(AF_INET6, exp_in, in expected_addr_match() 692 int pfx_len_max = args->version == AF_INET6 ? 128 : 32; in convert_addr() 731 } else if (family == AF_INET6) { in convert_addr() 732 args->md5_prefix.v6.sin6_family = AF_INET6; in convert_addr() [all …]
|
/tools/testing/selftests/bpf/ |
D | test_sock_addr.c | 170 AF_INET6, 198 AF_INET6, 212 AF_INET6, 284 AF_INET6, 312 AF_INET6, 326 AF_INET6, 412 AF_INET6, 426 AF_INET6, 440 AF_INET6, 454 AF_INET6, [all …]
|
D | test_skb_cgroup_id_user.c | 32 dst->sin6_family = AF_INET6; in mk_dst_addr() 35 if (inet_pton(AF_INET6, ip, &dst->sin6_addr) != 1) { in mk_dst_addr() 59 fd = socket(AF_INET6, SOCK_DGRAM, 0); in send_packet()
|
D | network_helpers.c | 330 } else if (family == AF_INET6) { in make_sockaddr() 334 sin6->sin6_family = AF_INET6; in make_sockaddr() 337 inet_pton(AF_INET6, addr_str, &sin6->sin6_addr) != 1) { in make_sockaddr() 350 if (family == AF_INET6) { in ping_command()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | connect_force_port.c | 146 server_fd = start_server(AF_INET6, SOCK_STREAM, NULL, 60124, 0); in test_connect_force_port() 149 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_STREAM)); in test_connect_force_port() 158 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 60124, 0); in test_connect_force_port() 161 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_DGRAM)); in test_connect_force_port()
|
D | sk_assign.c | 136 case AF_INET6: in get_port() 233 case AF_INET6: in prepare_addr() 274 TEST("ipv6 tcp port redir", AF_INET6, SOCK_STREAM, false), in test_sk_assign() 275 TEST("ipv6 tcp addr redir", AF_INET6, SOCK_STREAM, true), in test_sk_assign() 278 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign() 279 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
|
D | xdp.c | 8 struct vip key6 = {.protocol = 6, .family = AF_INET6}; in test_xdp() 10 struct iptnl_info value6 = {.family = AF_INET6}; in test_xdp()
|
D | cgroup_skb_sk_lookup.c | 16 serv_sk = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in run_lookup_test() 84 out_sk = socket(AF_INET6, SOCK_STREAM, 0); in test_cgroup_skb_sk_lookup()
|
D | sockmap_ktls.c | 122 run_tests(AF_INET6, BPF_MAP_TYPE_SOCKMAP); in test_sockmap_ktls() 123 run_tests(AF_INET6, BPF_MAP_TYPE_SOCKHASH); in test_sockmap_ktls()
|
D | bind_perm.c | 111 try_bind(AF_INET6, 110, EACCES); in test_bind_perm() 114 try_bind(AF_INET6, 111, 0); in test_bind_perm()
|
D | sock_fields.c | 66 inet_ntop(AF_INET6, &sk->src_ip6, src_ip6, sizeof(src_ip6)); in print_sk() 68 inet_ntop(AF_INET6, &sk->dst_ip6, dst_ip6, sizeof(dst_ip6)); in print_sk() 139 listen_sk.family != AF_INET6 || in check_result() 153 srv_sk.family != AF_INET6 || in check_result() 168 cli_sk.family != AF_INET6 || in check_result() 282 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0xcafe, 0); in test()
|
D | bpf_tcp_ca.c | 92 lfd = socket(AF_INET6, SOCK_STREAM, 0); in do_test() 95 fd = socket(AF_INET6, SOCK_STREAM, 0); in do_test() 106 sa6.sin6_family = AF_INET6; in do_test() 277 lfd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_dctcp_fallback()
|
D | cls_redirect.c | 82 case AF_INET6: in fill_addr_port() 152 case AF_INET6: in prepare_addr() 210 if (family == AF_INET6) in test_str() 289 if (tuple->family == AF_INET6) in build_input() 316 case AF_INET6: in build_input() 371 int families[] = { AF_INET, AF_INET6 }; in test_cls_redirect_common()
|
/tools/perf/trace/beauty/ |
D | socket.c | 24 if (domain == AF_INET || domain == AF_INET6) in syscall_arg__scnprintf_socket_protocol()
|