| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bind4_prog.c | 64 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport() 67 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport() 71 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport() 74 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport()
|
| H A D | bind6_prog.c | 70 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport() 73 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport() 77 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport() 80 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport()
|
| H A D | bpf_tracing_net.h | 17 #define SO_REUSEPORT 15 macro
|
| H A D | setget_sockopt.c | 43 { .opt = SO_REUSEPORT, .flip = 1, },
|
| /linux/tools/testing/selftests/net/ |
| H A D | bind_bhash.c | 78 sock_fd = bind_socket(SO_REUSEPORT, setup_addr); in setup() 106 listener_fd = bind_socket(SO_REUSEPORT, setup_addr); in main()
|
| H A D | reuseport_bpf.c | 2 * Test functionality of BPF filters for SO_REUSEPORT. The tests below will use 164 if (setsockopt(fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_recv_group() 166 error(1, errno, "failed to set SO_REUSEPORT on %d", i); in build_recv_group() 321 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() 322 error(1, errno, "failed to set SO_REUSEPORT on socket 1"); in test_extra_filter() 323 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() 324 error(1, errno, "failed to set SO_REUSEPORT on socket 2"); in test_extra_filter() 352 fprintf(stderr, "Testing filters on non-SO_REUSEPORT socket...\n"); in test_filter_no_reuseport() 400 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_filter_without_bind() 401 error(1, errno, "failed to set SO_REUSEPORT o in test_filter_without_bind() [all...] |
| H A D | stress_reuseport_listen.c | 50 err = setsockopt(*cur_fd, SOL_SOCKET, SO_REUSEPORT, in bind_reuseport_sock6()
|
| H A D | reuseaddr_ports_exhausted.c | 66 ret = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &reuseport, sizeof(int)); in bind_port()
|
| H A D | fin_ack_lat.c | 125 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT, in main()
|
| H A D | reuseport_dualstack.c | 3 * It is possible to use SO_REUSEPORT to open multiple sockets bound to 8 * the original SO_REUSEPORT implementation, but broke with 62 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_fd() 64 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
|
| H A D | so_incoming_cpu.c | 136 ret = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &(int){1}, sizeof(int)); in create_server()
|
| H A D | reuseport_bpf_cpu.c | 3 * Test functionality of BPF filters with SO_REUSEPORT. This program creates 4 * an SO_REUSEPORT receiver group containing one socket per CPU core. It then 65 if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_group() 67 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_group()
|
| H A D | reuseport_addr_any.c | 75 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_fd() 77 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
|
| H A D | reuseport_bpf_numa.c | 3 * Test functionality of BPF filters with SO_REUSEPORT. Same test as 61 if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_group() 63 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_group()
|
| H A D | udpgso_bench_rx.c | 138 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val))) in do_socket()
|
| H A D | tcp_fastopen_backup_key.c | 127 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_fd()
|
| /linux/tools/include/uapi/asm-generic/ |
| H A D | socket.h | 27 #define SO_REUSEPORT 15 macro
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | connect_close.c | 59 setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in do_accept()
|
| /linux/arch/mips/include/uapi/asm/ |
| H A D | socket.h | 33 #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */ macro
|
| /linux/arch/parisc/include/uapi/asm/ |
| H A D | socket.h | 18 #define SO_REUSEPORT 0x0200 macro
|
| /linux/include/uapi/asm-generic/ |
| H A D | socket.h | 27 #define SO_REUSEPORT 15 macro
|
| /linux/arch/sparc/include/uapi/asm/ |
| H A D | socket.h | 20 #define SO_REUSEPORT 0x0200 macro
|
| /linux/arch/alpha/include/uapi/asm/ |
| H A D | socket.h | 24 #define SO_REUSEPORT 0x0200 macro
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | socket_helpers.h | 223 err = xsetsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in enable_reuseport()
|
| H A D | migrate_reuseport.c | 239 SO_REUSEPORT, &reuseport, sizeof(reuseport)); in start_servers() 240 if (!ASSERT_OK(err, "setsockopt - SO_REUSEPORT")) in start_servers()
|