/openbmc/linux/net/ipv4/ |
H A 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() 118 MODULE_ALIAS_XFRM_TYPE(AF_INET, XFRM_PROTO_IPIP);
|
H A 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);
|
H A 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,
|
/openbmc/linux/tools/testing/selftests/net/ |
H A 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() 195 build_rcv_fd(AF_INET, SOCK_STREAM, rcv_fds, 5); in main() [all …]
|
H A D | reuseport_bpf.c | 53 case AF_INET: in new_any_sockaddr() 78 case AF_INET: in new_loopback_sockaddr() 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() 480 .send_family = AF_INET, in main() 486 .recv_family = AF_INET, in main() 487 .send_family = AF_INET, in main() [all …]
|
H A 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()
|
H A 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 },
|
H A 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);
|
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 453 inet_pton(AF_INET, "192.168.0.0", key->data); in test_lpm_delete() 458 inet_pton(AF_INET, "192.168.0.0", key->data); in test_lpm_delete() 468 inet_pton(AF_INET, "192.168.1.0", key->data); in test_lpm_delete() 473 inet_pton(AF_INET, "10.0.0.1", key->data); in test_lpm_delete() 477 inet_pton(AF_INET, "192.255.0.0", key->data); in test_lpm_delete() 481 inet_pton(AF_INET, "192.255.0.0", key->data); in test_lpm_delete() 486 inet_pton(AF_INET, "192.168.0.1", key->data); in test_lpm_delete() 492 inet_pton(AF_INET, "192.168.0.0", key->data); in test_lpm_delete() 496 inet_pton(AF_INET, "192.168.0.1", key->data); in test_lpm_delete() 502 inet_pton(AF_INET, "192.168.1.0", key->data); in test_lpm_delete() [all …]
|
H A D | test_sock_addr.c | 113 AF_INET, 127 AF_INET, 141 AF_INET, 155 AF_INET, 183 AF_INET, 227 AF_INET, 241 AF_INET, 255 AF_INET, 269 AF_INET, 297 AF_INET, [all …]
|
H A 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()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A 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()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
H A 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()
|
H A D | sk_assign.c | 133 case AF_INET: in get_port() 223 case AF_INET: in prepare_addr() 260 .addr = (FAMILY == AF_INET) ? (struct sockaddr *)&addr4 \ 262 .len = (FAMILY == AF_INET) ? sizeof(addr4) : sizeof(addr6), \ 272 TEST("ipv4 tcp port redir", AF_INET, SOCK_STREAM, false), in test_sk_assign() 273 TEST("ipv4 tcp addr redir", AF_INET, SOCK_STREAM, true), in test_sk_assign() 276 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign() 277 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign()
|
H A 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()
|
H A 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()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/ |
H A D | tftp-hpa-5.2-pktinfo.patch | 14 - if (from->sa_family == AF_INET) 15 + if (from->sa_family == AF_INET || !from->sa_family) 19 - if (from->sa_family == AF_INET) 20 + if (from->sa_family == AF_INET || !from->sa_family)
|
/openbmc/linux/net/xfrm/ |
H A 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()
|
/openbmc/linux/samples/bpf/ |
H A 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()
|
/openbmc/linux/include/linux/sunrpc/ |
H A D | addr.h | 26 case AF_INET: in rpc_get_port() 38 case AF_INET: in rpc_set_port() 125 case AF_INET: in rpc_cmp_addr() 161 case AF_INET: in rpc_copy_addr()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/mdns/mdns/ |
H A D | 0001-Handle-interface-without-ifa_addr.patch | 26 ((*ifi)->ifa_addr->sa_family == AF_INET) && 33 - if ( (((*ifi)->ifa_addr->sa_family == AF_INET) 35 + (((*ifi)->ifa_addr->sa_family == AF_INET)
|