Home
last modified time | relevance | path

Searched refs:AF_INET6 (Results 1 – 25 of 84) sorted by relevance

1234

/tools/testing/selftests/bpf/progs/
Dsocket_cookie_prog.c10 #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()
Dnetns_cookie_prog.c7 #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()
Dbind_perm.c42 return bind_prog(ctx, AF_INET6); in bind_v6_prog()
Dbpf_iter_bpf_sk_storage_map.c29 if (sk->sk_family == AF_INET6) in dump_bpf_sk_storage_map()
/tools/testing/selftests/net/
Dreuseport_bpf.c61 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 …]
Dreuseport_addr_any.c55 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()
Dreuseport_dualstack.c45 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()
Dreuseport_bpf_numa.c45 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()
Dreuseport_bpf_cpu.c49 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()
Dtcp_fastopen_backup_key.c108 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()
Dreuseaddr_conflict.c29 int family = ipv6 ? AF_INET6 : AF_INET; in open_port()
32 .sin6_family = AF_INET6, in open_port()
Dnettest.c224 } 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/
Dtest_sock_addr.c170 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 …]
Dtest_skb_cgroup_id_user.c32 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()
Dnetwork_helpers.c330 } 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/
Dconnect_force_port.c146 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()
Dsk_assign.c136 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()
Dxdp.c8 struct vip key6 = {.protocol = 6, .family = AF_INET6}; in test_xdp()
10 struct iptnl_info value6 = {.family = AF_INET6}; in test_xdp()
Dcgroup_skb_sk_lookup.c16 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()
Dsockmap_ktls.c122 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()
Dbind_perm.c111 try_bind(AF_INET6, 110, EACCES); in test_bind_perm()
114 try_bind(AF_INET6, 111, 0); in test_bind_perm()
Dsock_fields.c66 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()
Dbpf_tcp_ca.c92 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()
Dcls_redirect.c82 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/
Dsocket.c24 if (domain == AF_INET || domain == AF_INET6) in syscall_arg__scnprintf_socket_protocol()

1234