/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bind6_prog.c | 68 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, 71 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, 75 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, 78 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT,
|
H A D | bind4_prog.c | 62 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, 65 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, 69 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_REUSEPORT, 72 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_REUSEPORT,
|
H A D | bpf_tracing_net.h | 14 #define SO_REUSEPORT 15 macro
|
H A D | setget_sockopt.c | 46 { .opt = SO_REUSEPORT, .flip = 1, },
|
/linux-master/tools/testing/selftests/net/ |
H A D | bind_bhash.c | 78 sock_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr); 106 listener_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr);
|
H A D | stress_reuseport_listen.c | 7 * SO_REUSEPORT. 50 err = setsockopt(*cur_fd, SOL_SOCKET, SO_REUSEPORT, 54 "setsockopt(lfds[%u,%u], SO_REUSEPORT)",
|
H A D | reuseport_bpf.c | 2 * Test functionality of BPF filters for SO_REUSEPORT. The tests below will use 163 if (setsockopt(fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, 165 error(1, errno, "failed to set SO_REUSEPORT on %d", i); 320 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) 321 error(1, errno, "failed to set SO_REUSEPORT on socket 1"); 322 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) 323 error(1, errno, "failed to set SO_REUSEPORT on socket 2"); 351 fprintf(stderr, "Testing filters on non-SO_REUSEPORT socket...\n"); 399 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) 400 error(1, errno, "failed to set SO_REUSEPORT o [all...] |
H A D | fin_ack_lat.c | 125 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT,
|
H A D | reuseaddr_ports_exhausted.c | 11 * 4. if SO_REUSEADDR is enabled and SO_REUSEPORT is disabled, 13 * 5. if SO_REUSEADDR and SO_REUSEPORT are enabled and 66 ret = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &reuseport, sizeof(int)); 67 ASSERT_EQ(0, ret) TH_LOG("failed to setsockopt: SO_REUSEPORT.");
|
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, 67 error(1, errno, "failed to set SO_REUSEPORT");
|
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 61 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, 63 error(1, errno, "failed to set SO_REUSEPORT");
|
H A D | reuseport_addr_any.c | 80 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, 82 error(1, errno, "failed to set SO_REUSEPORT");
|
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, 63 error(1, errno, "failed to set SO_REUSEPORT");
|
H A D | so_incoming_cpu.c | 136 ret = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &(int){1}, sizeof(int));
|
H A D | tcp_fastopen_backup_key.c | 10 * to the same port via SO_REUSEPORT. This simulates key rotation 127 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, 129 error(1, errno, "failed to set SO_REUSEPORT");
|
H A D | udpgso_bench_rx.c | 138 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val)))
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | connect_close.c | 59 setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one));
|
/linux-master/arch/mips/include/uapi/asm/ |
H A D | socket.h | 33 #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */ macro
|
/linux-master/arch/alpha/include/uapi/asm/ |
H A D | socket.h | 24 #define SO_REUSEPORT 0x0200 macro
|
/linux-master/include/uapi/asm-generic/ |
H A D | socket.h | 27 #define SO_REUSEPORT 15 macro
|
/linux-master/tools/include/uapi/asm-generic/ |
H A D | socket.h | 27 #define SO_REUSEPORT 15 macro
|
/linux-master/arch/parisc/include/uapi/asm/ |
H A D | socket.h | 18 #define SO_REUSEPORT 0x0200 macro
|
/linux-master/arch/sparc/include/uapi/asm/ |
H A D | socket.h | 20 #define SO_REUSEPORT 0x0200 macro
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_helpers.h | 367 err = xsetsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one));
|
H A D | migrate_reuseport.c | 234 SO_REUSEPORT, &reuseport, sizeof(reuseport)); 235 if (!ASSERT_OK(err, "setsockopt - SO_REUSEPORT"))
|