Home
last modified time | relevance | path

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

12345678910>>...20

/linux-6.12.1/tools/testing/selftests/net/
Dbind_wildcard.c92 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
106 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
121 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
135 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
149 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
163 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
177 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
192 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
206 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
220 .family = {AF_INET, AF_INET6}, in FIXTURE_VARIANT_ADD()
[all …]
Dreuseport_bpf.c59 case AF_INET6: in new_any_sockaddr()
61 addr6->sin6_family = AF_INET6; in new_any_sockaddr()
82 case AF_INET6: in new_loopback_sockaddr()
503 .recv_family = AF_INET6, in main()
504 .send_family = AF_INET6, in main()
510 .recv_family = AF_INET6, in main()
511 .send_family = AF_INET6, in main()
517 .recv_family = AF_INET6, in main()
518 .send_family = AF_INET6, in main()
524 .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()
Dsk_connect_zero_addr.c12 .sin6_family = AF_INET6, in main()
19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
42 fd2 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
Dsk_bind_sendto_listen.c12 .sin6_family = AF_INET6, in main()
19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
43 fd2 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); 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()
250 test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM); in main()
256 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()
Dsctp_hello.c22 a->sin6_family = AF_INET6; in set_addr()
23 inet_pton(AF_INET6, ip, &a->sin6_addr); in set_addr()
41 ss.ss_family = !strcmp(argv[2], "-4") ? AF_INET : AF_INET6; in do_client()
93 ss.ss_family = !strcmp(argv[2], "-4") ? AF_INET : AF_INET6; in main()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dconnect_ping.c28 .sin6_family = AF_INET6, in subtest()
42 case AF_INET6: in subtest()
62 if (!ASSERT_EQ(skel->bss->invocations_v6, family == AF_INET6 ? 1 : 0, in subtest()
81 case AF_INET6: in subtest()
82 if (!ASSERT_EQ(sa6.sin6_family, AF_INET6, "sin6_family")) in subtest()
161 subtest(cgroup_fd, skel, AF_INET6, 0); in test_connect_ping()
168 subtest(cgroup_fd, skel, AF_INET6, 1); in test_connect_ping()
Dsock_addr.c595 AF_INET6,
611 AF_INET6,
627 AF_INET6,
643 AF_INET6,
659 AF_INET6,
757 AF_INET6,
773 AF_INET6,
789 AF_INET6,
805 AF_INET6,
919 AF_INET6,
[all …]
Dsetget_sockopt.c50 family == AF_INET6 ? addr6_str : addr4_str, 0, 0); in test_tcp()
78 family == AF_INET6 ? addr6_str : addr4_str, 0, 0); in test_udp()
97 family == AF_INET6 ? addr6_str : addr4_str, 0, 0); in test_ktls()
167 family == AF_INET6 ? addr6_str : addr4_str, 0, 0); in test_nonstandard_opt()
233 test_tcp(AF_INET6); in test_setget_sockopt()
235 test_udp(AF_INET6); in test_setget_sockopt()
237 test_ktls(AF_INET6); in test_setget_sockopt()
240 test_nonstandard_opt(AF_INET6); in test_setget_sockopt()
Dsk_assign.c89 case AF_INET6: in get_port()
186 case AF_INET6: in prepare_addr()
227 TEST("ipv6 tcp port redir", AF_INET6, SOCK_STREAM, false), in test_sk_assign()
228 TEST("ipv6 tcp addr redir", AF_INET6, SOCK_STREAM, true), in test_sk_assign()
231 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign()
232 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
/linux-6.12.1/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()
Dcgrp_ls_attach_cgroup.c30 if (ctx->family != AF_INET6 || ctx->user_family != AF_INET6) in set_cookie()
59 if (ctx->family != AF_INET6 || ctx->op != BPF_SOCK_OPS_TCP_CONNECT_CB) in update_cookie_sockops()
88 if (uaddr->sa_family != AF_INET6) in BPF_PROG()
Dsock_destroy_prog.c34 if (ctx->family != AF_INET6 || ctx->user_family != AF_INET6) in sock_connect()
59 if (sk_common->skc_family != AF_INET6) in iter_tcp6_client()
85 if (sk_common->skc_family != AF_INET6) in iter_tcp6_server()
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()
/linux-6.12.1/include/trace/events/
Dnet_probe_common.h23 if (sk->sk_family == AF_INET6) { \
26 v6->sin6_family = AF_INET6; \
30 v6->sin6_family = AF_INET6; \
57 if (sk->sk_family == AF_INET6) { \
95 v6->sin6_family = AF_INET6; \
99 v6->sin6_family = AF_INET6; \
/linux-6.12.1/net/ipv6/
Dipcomp6.c60 spi, IPPROTO_COMP, AF_INET6); in ipcomp6_err()
90 t->props.family = AF_INET6; in ipcomp6_tunnel_create()
122 spi, IPPROTO_IPV6, AF_INET6); in ipcomp6_tunnel_attach()
197 if (xfrm_register_type(&ipcomp6_type, AF_INET6) < 0) { in ipcomp6_init()
203 xfrm_unregister_type(&ipcomp6_type, AF_INET6); in ipcomp6_init()
213 xfrm_unregister_type(&ipcomp6_type, AF_INET6); in ipcomp6_fini()
222 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_COMP);
Dmip6.c233 sel.family = AF_INET6; in mip6_destopt_reject()
373 if (xfrm_register_type(&mip6_destopt_type, AF_INET6) < 0) { in mip6_init()
377 if (xfrm_register_type(&mip6_rthdr_type, AF_INET6) < 0) { in mip6_init()
390 xfrm_unregister_type(&mip6_rthdr_type, AF_INET6); in mip6_init()
392 xfrm_unregister_type(&mip6_destopt_type, AF_INET6); in mip6_init()
401 xfrm_unregister_type(&mip6_rthdr_type, AF_INET6); in mip6_fini()
402 xfrm_unregister_type(&mip6_destopt_type, AF_INET6); in mip6_fini()
410 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_DSTOPTS);
411 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_ROUTING);
Dfib6_notifier.c14 info->family = AF_INET6; in call_fib6_notifier()
21 info->family = AF_INET6; in call_fib6_notifiers()
43 .family = AF_INET6,
Dxfrm6_tunnel.c364 rv = xfrm_register_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_init()
367 rv = xfrm6_tunnel_register(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_init()
376 xfrm6_tunnel_deregister(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_init()
378 xfrm_unregister_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_init()
389 xfrm6_tunnel_deregister(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_fini()
390 xfrm_unregister_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_fini()
403 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_IPV6);
/linux-6.12.1/include/linux/sunrpc/
Daddr.h28 case AF_INET6: in rpc_get_port()
41 case AF_INET6: in rpc_set_port()
127 case AF_INET6: in rpc_cmp_addr()
163 case AF_INET6: in rpc_copy_addr()
178 if (sa->sa_family != AF_INET6) in rpc_get_scope_id()
/linux-6.12.1/net/xfrm/
Dxfrm_hash.h94 case AF_INET6: in __xfrm_dst_hash()
111 case AF_INET6: in __xfrm_src_hash()
127 case AF_INET6: in __xfrm_spi_hash()
163 case AF_INET6: in __sel_hash()
188 case AF_INET6: in __addr_hash()
/linux-6.12.1/net/sctp/
Dipv6.c88 addr->a.v6.sin6_family = AF_INET6; in sctp_inet6addr_event()
102 if (addr->a.sa.sa_family == AF_INET6 && in sctp_inet6addr_event()
175 sk = sctp_err_lookup(net, AF_INET6, skb, sctp_hdr(skb), &asoc, &transport); in sctp_v6_err()
199 sk = sctp_err_lookup(net, AF_INET6, skb, sctp_hdr(skb), &asoc, &t); in sctp_udp_v6_err()
351 if ((laddr->a.sa.sa_family == AF_INET6) && in sctp_v6_get_dst()
377 laddr->a.sa.sa_family != AF_INET6 || in sctp_v6_get_dst()
451 saddr->v6.sin6_family = AF_INET6; in sctp_v6_get_saddr()
475 addr->a.v6.sin6_family = AF_INET6; in sctp_v6_copy_addrlist()
531 addr->v6.sin6_family = AF_INET6; in sctp_v6_from_skb()
547 addr->v6.sin6_family = AF_INET6; in sctp_v6_from_sk()
[all …]

12345678910>>...20