/linux-6.12.1/net/ipv4/ |
D | xfrm4_tunnel.c | 81 if (xfrm_register_type(&ipip_type, AF_INET) < 0) { in ipip_init() 86 if (xfrm4_tunnel_register(&xfrm_tunnel_handler, AF_INET)) { in ipip_init() 88 xfrm_unregister_type(&ipip_type, AF_INET); in ipip_init() 94 xfrm4_tunnel_deregister(&xfrm_tunnel_handler, AF_INET); in ipip_init() 95 xfrm_unregister_type(&ipip_type, AF_INET); in ipip_init() 109 if (xfrm4_tunnel_deregister(&xfrm_tunnel_handler, AF_INET)) in ipip_fini() 112 xfrm_unregister_type(&ipip_type, AF_INET); in ipip_fini() 119 MODULE_ALIAS_XFRM_TYPE(AF_INET, XFRM_PROTO_IPIP);
|
D | ipcomp.c | 43 spi, IPPROTO_COMP, AF_INET); in ipcomp4_err() 70 t->props.family = AF_INET; in ipcomp_tunnel_create() 104 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); in ipcomp_tunnel_attach() 178 if (xfrm_register_type(&ipcomp_type, AF_INET) < 0) { in ipcomp4_init() 184 xfrm_unregister_type(&ipcomp_type, AF_INET); in ipcomp4_init() 194 xfrm_unregister_type(&ipcomp_type, AF_INET); in ipcomp4_fini() 204 MODULE_ALIAS_XFRM_TYPE(AF_INET, XFRM_PROTO_COMP);
|
D | fib_notifier.c | 15 info->family = AF_INET; in call_fib4_notifier() 24 info->family = AF_INET; in call_fib4_notifiers() 49 .family = AF_INET,
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 53 case AF_INET: in new_any_sockaddr() 55 addr4->sin_family = AF_INET; in new_any_sockaddr() 78 case AF_INET: in new_loopback_sockaddr() 393 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 396 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 465 .recv_family = AF_INET, in main() 466 .send_family = AF_INET, in main() 472 .recv_family = AF_INET, in main() 473 .send_family = AF_INET, in main() 479 .recv_family = AF_INET, in main() [all …]
|
D | reuseport_dualstack.c | 39 case AF_INET: in build_rcv_fd() 41 addr4->sin_family = AF_INET; in build_rcv_fd() 78 saddr.sin_family = AF_INET; in send_from_v4() 82 daddr.sin_family = AF_INET; in send_from_v4() 86 fd = socket(AF_INET, proto, 0); in send_from_v4() 152 if (test_family != AF_INET) in test() 164 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 5); in main() 172 build_rcv_fd(AF_INET, SOCK_DGRAM, &(rcv_fds[5]), 5); in main() 181 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 16); in main() 189 build_rcv_fd(AF_INET, SOCK_DGRAM, &(rcv_fds[16]), 16); in main() [all …]
|
D | bind_wildcard.c | 63 .family = {AF_INET, AF_INET}, in FIXTURE_VARIANT_ADD() 77 .family = {AF_INET, AF_INET}, in FIXTURE_VARIANT_ADD() 92 .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() [all …]
|
D | reuseport_addr_any.c | 45 case AF_INET: in build_rcv_fd() 111 case AF_INET: in connect_and_send() 112 saddr4.sin_family = AF_INET; in connect_and_send() 116 daddr4.sin_family = AF_INET; in connect_and_send() 233 build_rcv_fd(AF_INET, proto, rcv_fds, 2, NULL); in run_one_test() 236 build_rcv_fd(AF_INET, proto, rcv_fds + 5, 2, NULL); in run_one_test() 249 test_fd = socket(AF_INET, proto, 0); in test_proto() 261 run_one_test(AF_INET, AF_INET, proto, IP4_ADDR); in test_proto() 267 run_one_test(AF_INET, AF_INET6, proto, IP4_MAPPED6); in test_proto()
|
D | socket.c | 30 { AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 1 }, 31 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 }, 32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 }, 33 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
|
D | fin_ack_lat.c | 42 sock = socket(AF_INET, SOCK_STREAM, 0); in client() 55 addr.sin_family = AF_INET; in client() 58 if (inet_pton(AF_INET, "127.0.0.1", &addr.sin_addr) <= 0) in client() 121 sock = socket(AF_INET, SOCK_STREAM, 0); in main() 129 address.sin_family = AF_INET; in main()
|
D | bind_timewait.c | 32 self->addr.sin_family = AF_INET; in FIXTURE_SETUP() 49 server_fd = socket(AF_INET, SOCK_STREAM, 0); in create_timewait_socket() 61 client_fd = socket(AF_INET, SOCK_STREAM, 0); in create_timewait_socket() 82 fd = socket(AF_INET, SOCK_STREAM, 0);
|
D | reuseport_bpf_numa.c | 39 case AF_INET: in build_rcv_group() 41 addr4->sin_family = AF_INET; in build_rcv_group() 115 case AF_INET: in send_from_node() 117 saddr4->sin_family = AF_INET; in send_from_node() 122 daddr4->sin_family = AF_INET; in send_from_node() 247 test(rcv_fd, nodes, AF_INET, SOCK_DGRAM); in main() 253 test(rcv_fd, nodes, AF_INET, SOCK_STREAM); in main()
|
D | reuseport_bpf_cpu.c | 43 case AF_INET: in build_rcv_group() 45 addr4->sin_family = AF_INET; in build_rcv_group() 103 case AF_INET: in send_from_cpu() 105 saddr4->sin_family = AF_INET; in send_from_cpu() 110 daddr4->sin_family = AF_INET; in send_from_cpu() 244 test(rcv_fd, cpus, AF_INET, SOCK_DGRAM); in main() 250 test(rcv_fd, cpus, AF_INET, SOCK_STREAM); in main()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 360 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 365 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 370 inet_pton(AF_INET, "192.168.128.0", key_ipv4->data); in test_lpm_ipaddr() 375 inet_pton(AF_INET, "192.168.1.0", key_ipv4->data); in test_lpm_ipaddr() 380 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 393 inet_pton(AF_INET, "192.168.128.23", key_ipv4->data); in test_lpm_ipaddr() 397 inet_pton(AF_INET, "192.168.0.1", key_ipv4->data); in test_lpm_ipaddr() 410 inet_pton(AF_INET, "10.0.0.1", key_ipv4->data); in test_lpm_ipaddr() 413 inet_pton(AF_INET, "11.11.11.11", key_ipv4->data); in test_lpm_ipaddr() 453 inet_pton(AF_INET, "192.168.0.0", key->data); in test_lpm_delete() [all …]
|
D | test_sock.c | 110 .domain = AF_INET, 124 .domain = AF_INET, 178 .domain = AF_INET, 250 .domain = AF_INET, 280 .domain = AF_INET, 311 .domain = AF_INET, 357 .domain = AF_INET, 429 if (domain == AF_INET) { in bind_sock() 461 if (domain == AF_INET) in bind_sock()
|
/linux-6.12.1/tools/testing/selftests/net/netfilter/ |
D | connect_close.c | 42 int s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in do_connect() 53 int c, one = 1, s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in do_accept() 75 .sin_family = AF_INET, in accept_loop() 79 inet_pton(AF_INET, "127.0.0.1", &src.sin_addr); in accept_loop() 92 .sin_family = AF_INET, in connect_loop() 96 inet_pton(AF_INET, "127.0.0.1", &dst.sin_addr); in connect_loop()
|
D | conntrack_reverse_clash.c | 47 int fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in udp_socket() 59 .sin_family = AF_INET, in main() 62 .sin_family = AF_INET, in main() 76 inet_pton(AF_INET, "127.0.0.11", &sa1.sin_addr); in main() 77 inet_pton(AF_INET, "127.0.0.12", &sa2.sin_addr); in main()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | connect_force_port.c | 19 if (family == AF_INET) in verify_ports() 35 if (family == AF_INET) in verify_ports() 51 bool v4 = family == AF_INET; in run_test() 141 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 60123, 0); in test_connect_force_port() 144 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_STREAM)); in test_connect_force_port() 153 server_fd = start_server(AF_INET, SOCK_DGRAM, NULL, 60123, 0); in test_connect_force_port() 156 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_DGRAM)); in test_connect_force_port()
|
D | sock_addr.c | 499 AF_INET, 515 AF_INET, 531 AF_INET, 547 AF_INET, 563 AF_INET, 579 AF_INET, 675 AF_INET, 693 AF_INET, 709 AF_INET, 725 AF_INET, [all …]
|
D | connect_ping.c | 24 .sin_family = AF_INET, in subtest() 37 case AF_INET: in subtest() 59 if (!ASSERT_EQ(skel->bss->invocations_v4, family == AF_INET ? 1 : 0, in subtest() 73 case AF_INET: in subtest() 147 subtest(cgroup_fd, skel, AF_INET, 0); in test_connect_ping() 154 subtest(cgroup_fd, skel, AF_INET, 1); in test_connect_ping()
|
D | sk_assign.c | 86 case AF_INET: in get_port() 176 case AF_INET: in prepare_addr() 213 .addr = (FAMILY == AF_INET) ? (struct sockaddr *)&addr4 \ 215 .len = (FAMILY == AF_INET) ? sizeof(addr4) : sizeof(addr6), \ 225 TEST("ipv4 tcp port redir", AF_INET, SOCK_STREAM, false), in test_sk_assign() 226 TEST("ipv4 tcp addr redir", AF_INET, SOCK_STREAM, true), in test_sk_assign() 229 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign() 230 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign()
|
D | sockmap_ktls.c | 88 case AF_INET: in test_sockmap_ktls_update_fails_when_sock_has_ulp() 90 v4->sin_family = AF_INET; in test_sockmap_ktls_update_fails_when_sock_has_ulp() 139 const char *family_str = AF_INET ? "IPv4" : "IPv6"; in fmt_test_name() 167 run_tests(AF_INET, BPF_MAP_TYPE_SOCKMAP); in test_sockmap_ktls() 168 run_tests(AF_INET, BPF_MAP_TYPE_SOCKHASH); in test_sockmap_ktls()
|
D | udp_limit.c | 32 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 36 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 44 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
|
/linux-6.12.1/tools/testing/selftests/landlock/ |
D | net_test.c | 58 case AF_INET: in set_service() 92 case AF_INET: in is_restricted() 123 case AF_INET: in get_addrlen() 146 case AF_INET: in set_port() 169 case AF_INET: in get_binded_port() 192 case AF_INET: in bind_variant_addrlen() 228 case AF_INET: in connect_variant_addrlen() 297 .domain = AF_INET, in FIXTURE_VARIANT_ADD() 317 .domain = AF_INET, in FIXTURE_VARIANT_ADD() 357 .domain = AF_INET, in FIXTURE_VARIANT_ADD() [all …]
|
/linux-6.12.1/net/xfrm/ |
D | xfrm_hash.h | 91 case AF_INET: in __xfrm_dst_hash() 108 case AF_INET: in __xfrm_src_hash() 124 case AF_INET: in __xfrm_spi_hash() 155 case AF_INET: in __sel_hash() 184 case AF_INET: in __addr_hash()
|
/linux-6.12.1/samples/bpf/ |
D | test_probe_write_user_user.c | 59 assert((serverfd = socket(AF_INET, SOCK_STREAM, 0)) > 0); in main() 60 assert((clientfd = socket(AF_INET, SOCK_STREAM, 0)) > 0); in main() 64 serv_addr_in->sin_family = AF_INET; in main() 76 mapped_addr_in->sin_family = AF_INET; in main()
|