/openbmc/linux/tools/testing/selftests/net/ |
H A D | reuseport_bpf.c | 59 case 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() 525 .send_family = AF_INET6, in main() [all …]
|
H A 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()
|
H A D | sk_connect_zero_addr.c | 12 .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()
|
H A 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()
|
H A D | sk_bind_sendto_listen.c | 12 .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()
|
H A 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()
|
H A 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() 250 test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM); in main() 256 test(rcv_fd, nodes, AF_INET6, SOCK_STREAM); in main()
|
H A D | sctp_hello.c | 22 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()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A 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()
|
H A D | cgrp_ls_attach_cgroup.c | 30 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()
|
H A 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()
|
H A D | sock_destroy_prog.c | 34 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()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | connect_ping.c | 28 .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()
|
H A D | setget_sockopt.c | 50 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() 188 test_tcp(AF_INET6); in test_setget_sockopt() 190 test_udp(AF_INET6); in test_setget_sockopt() 192 test_ktls(AF_INET6); in test_setget_sockopt()
|
H A D | connect_force_port.c | 147 server_fd = start_server(AF_INET6, SOCK_STREAM, NULL, 60124, 0); in test_connect_force_port() 150 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_STREAM)); in test_connect_force_port() 159 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 60124, 0); in test_connect_force_port() 162 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_DGRAM)); in test_connect_force_port()
|
H A D | sockmap_ktls.c | 92 case AF_INET6: in test_sockmap_ktls_update_fails_when_sock_has_ulp() 94 v6->sin6_family = AF_INET6; in test_sockmap_ktls_update_fails_when_sock_has_ulp() 169 run_tests(AF_INET6, BPF_MAP_TYPE_SOCKMAP); in test_sockmap_ktls() 170 run_tests(AF_INET6, BPF_MAP_TYPE_SOCKHASH); in test_sockmap_ktls()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sock_addr.c | 169 AF_INET6, 197 AF_INET6, 211 AF_INET6, 283 AF_INET6, 311 AF_INET6, 325 AF_INET6, 411 AF_INET6, 425 AF_INET6, 439 AF_INET6, 453 AF_INET6, [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | ipcomp6.c | 60 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);
|
H A D | fib6_notifier.c | 14 info->family = AF_INET6; in call_fib6_notifier() 21 info->family = AF_INET6; in call_fib6_notifiers() 43 .family = AF_INET6,
|
H A D | mip6.c | 233 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() 409 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_DSTOPTS); 410 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_ROUTING);
|
H A D | xfrm6_tunnel.c | 367 rv = xfrm_register_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_init() 370 rv = xfrm6_tunnel_register(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_init() 379 xfrm6_tunnel_deregister(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_init() 381 xfrm_unregister_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_init() 392 xfrm6_tunnel_deregister(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_fini() 393 xfrm_unregister_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_fini() 405 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_IPV6);
|
/openbmc/linux/include/linux/sunrpc/ |
H A D | addr.h | 28 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()
|
/openbmc/linux/include/trace/events/ |
H A D | net_probe_common.h | 23 if (sk->sk_family == AF_INET6) { \ 26 v6->sin6_family = AF_INET6; \ 30 v6->sin6_family = AF_INET6; \
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_hash.h | 94 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()
|
/openbmc/linux/net/sctp/ |
H A D | ipv6.c | 88 addr->a.v6.sin6_family = AF_INET6; in sctp_inet6addr_event() 452 saddr->v6.sin6_family = AF_INET6; in sctp_v6_get_saddr() 532 addr->v6.sin6_family = AF_INET6; in sctp_v6_from_skb() 548 addr->v6.sin6_family = AF_INET6; in sctp_v6_from_sk() 588 addr->v6.sin6_family = AF_INET6; in sctp_v6_from_addr_param() 616 addr->sa.sa_family = AF_INET6; in sctp_v6_to_addr() 670 addr->v6.sin6_family = AF_INET6; in sctp_v6_inaddr_any() 888 addr->v6.sin6_family = AF_INET6; in sctp_inet6_event_msgname() 919 addr->v6.sin6_family = AF_INET6; in sctp_inet6_skb_msgname() 936 case AF_INET6: in sctp_inet6_af_supported() [all …]
|