/linux/tools/testing/selftests/net/ |
A D | reuseport_bpf.c | 61 case 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() 527 .send_family = AF_INET6, in main() [all …]
|
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()
|
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()
|
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()
|
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()
|
A D | nettest.c | 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() 627 inet_ntop(AF_INET6, exp_in, in expected_addr_match() 769 case AF_INET6: in convert_addr() 1163 if (version == AF_INET6) { in set_recv_attr() 1328 .sin6_family = AF_INET6, in bind_socket() 1344 case AF_INET6: in bind_socket() 1668 .sin6_family = AF_INET6, in do_client() 1710 case AF_INET6: in do_client() [all …]
|
A 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()
|
/linux/tools/testing/selftests/bpf/ |
A 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 …]
|
/linux/tools/testing/selftests/bpf/progs/ |
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()
|
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()
|
/linux/net/ipv6/ |
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() 193 if (xfrm_register_type(&ipcomp6_type, AF_INET6) < 0) { in ipcomp6_init() 199 xfrm_unregister_type(&ipcomp6_type, AF_INET6); in ipcomp6_init() 209 xfrm_unregister_type(&ipcomp6_type, AF_INET6); in ipcomp6_fini() 218 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_COMP);
|
A D | mip6.c | 233 sel.family = AF_INET6; in mip6_destopt_reject() 375 if (xfrm_register_type(&mip6_destopt_type, AF_INET6) < 0) { in mip6_init() 379 if (xfrm_register_type(&mip6_rthdr_type, AF_INET6) < 0) { in mip6_init() 392 xfrm_unregister_type(&mip6_rthdr_type, AF_INET6); in mip6_init() 394 xfrm_unregister_type(&mip6_destopt_type, AF_INET6); in mip6_init() 403 xfrm_unregister_type(&mip6_rthdr_type, AF_INET6); in mip6_fini() 404 xfrm_unregister_type(&mip6_destopt_type, AF_INET6); in mip6_fini() 411 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_DSTOPTS); 412 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_ROUTING);
|
A D | xfrm6_tunnel.c | 363 rv = xfrm_register_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_init() 366 rv = xfrm6_tunnel_register(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_init() 375 xfrm6_tunnel_deregister(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_init() 377 xfrm_unregister_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_init() 388 xfrm6_tunnel_deregister(&xfrm6_tunnel_handler, AF_INET6); in xfrm6_tunnel_fini() 389 xfrm_unregister_type(&xfrm6_tunnel_type, AF_INET6); in xfrm6_tunnel_fini() 401 MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_IPV6);
|
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,
|
/linux/include/linux/sunrpc/ |
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()
|
/linux/net/sctp/ |
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() 877 addr->v6.sin6_family = AF_INET6; in sctp_inet6_event_msgname() 908 addr->v6.sin6_family = AF_INET6; in sctp_inet6_skb_msgname() 925 case AF_INET6: in sctp_inet6_af_supported() [all …]
|
/linux/net/xfrm/ |
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()
|
/linux/include/trace/events/ |
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; \
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | sk_assign.c | 120 case AF_INET6: in get_port() 220 case AF_INET6: in prepare_addr() 261 TEST("ipv6 tcp port redir", AF_INET6, SOCK_STREAM, false), in test_sk_assign() 262 TEST("ipv6 tcp addr redir", AF_INET6, SOCK_STREAM, true), in test_sk_assign() 265 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign() 266 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
|
A 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()
|
/linux/net/netlabel/ |
A D | netlabel_kapi.c | 70 case AF_INET6: in netlbl_cfg_map_del() 144 case AF_INET6: { in netlbl_cfg_unlbl_map_add() 223 case AF_INET6: in netlbl_cfg_unlbl_static_add() 265 case AF_INET6: in netlbl_cfg_unlbl_static_del() 1007 case AF_INET6: in netlbl_sock_setattr() 1050 case AF_INET6: in netlbl_sock_delattr() 1079 case AF_INET6: in netlbl_sock_getattr() 1139 case AF_INET6: in netlbl_conn_setattr() 1212 case AF_INET6: in netlbl_req_setattr() 1257 case AF_INET6: in netlbl_req_delattr() [all …]
|
A D | netlabel_domainhash.c | 185 if (family == AF_INET6 || family == AF_UNSPEC) { in netlbl_domhsh_search_def() 286 if (entry->family != AF_INET && entry->family != AF_INET6 && in netlbl_domhsh_validate() 303 if (entry->family != AF_INET6 || in netlbl_domhsh_validate() 446 case AF_INET6: in netlbl_domhsh_add() 461 entry_b->family = AF_INET6; in netlbl_domhsh_add() 743 entry_map = netlbl_domhsh_search(domain, AF_INET6); in netlbl_domhsh_remove_af6() 745 entry_map = netlbl_domhsh_search_def(domain, AF_INET6); in netlbl_domhsh_remove_af6() 811 if (family == AF_INET6 || family == AF_UNSPEC) { in netlbl_domhsh_remove() 815 entry = netlbl_domhsh_search(domain, AF_INET6); in netlbl_domhsh_remove() 817 entry = netlbl_domhsh_search_def(domain, AF_INET6); in netlbl_domhsh_remove() [all …]
|
/linux/net/netfilter/ipvs/ |
A D | ip_vs_proto_udp.c | 99 if (af == AF_INET6) in udp_fast_csum_update() 121 if (af == AF_INET6) in udp_partial_csum_update() 145 if (cp->af == AF_INET6 && iph->fragoffs) in udp_snat_handler() 195 if (cp->af == AF_INET6) in udp_snat_handler() 228 if (cp->af == AF_INET6 && iph->fragoffs) in udp_dnat_handler() 279 if (cp->af == AF_INET6) in udp_dnat_handler() 306 if (af == AF_INET6) in udp_csum_check() 324 if (af == AF_INET6) { in udp_csum_check()
|
/linux/net/ipv4/ |
A D | ping.c | 207 sk->sk_family == AF_INET6) { in ping_lookup() 261 if (sk->sk_family == AF_INET6) in ping_init_sock() 326 } else if (sk->sk_family == AF_INET6) { in ping_check_bind_addr() 334 if (addr->sin6_family != AF_INET6) in ping_check_bind_addr() 437 if (sk->sk_family == AF_INET6) in ping_bind() 484 family = AF_INET6; in ping_err() 569 } else if (family == AF_INET6) { in ping_err() 613 if (pfh->family == AF_INET6) { in ping_getfrag() 670 } else if (family == AF_INET6) { in ping_common_sendmsg() 894 } else if (family == AF_INET6) { in ping_recvmsg() [all …]
|
/linux/net/ipv6/netfilter/ |
A D | ip6_tables.c | 979 xt_compat_lock(AF_INET6); in get_info() 990 xt_compat_flush_offsets(AF_INET6); in get_info() 1015 xt_compat_unlock(AF_INET6); in get_info() 1424 xt_compat_lock(AF_INET6); in translate_compat_table() 1462 xt_compat_flush_offsets(AF_INET6); in translate_compat_table() 1463 xt_compat_unlock(AF_INET6); in translate_compat_table() 1488 xt_compat_flush_offsets(AF_INET6); in translate_compat_table() 1489 xt_compat_unlock(AF_INET6); in translate_compat_table() 1601 xt_compat_lock(AF_INET6); in compat_get_entries() 1613 xt_compat_flush_offsets(AF_INET6); in compat_get_entries() [all …]
|