Searched refs:SO_REUSEPORT (Results 1 - 25 of 35) sorted by relevance

12

/linux-master/tools/testing/selftests/bpf/progs/
H A Dbind6_prog.c68 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 Dbind4_prog.c62 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 Dbpf_tracing_net.h14 #define SO_REUSEPORT 15 macro
H A Dsetget_sockopt.c46 { .opt = SO_REUSEPORT, .flip = 1, },
/linux-master/tools/testing/selftests/net/
H A Dbind_bhash.c78 sock_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr);
106 listener_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr);
H A Dstress_reuseport_listen.c7 * SO_REUSEPORT.
50 err = setsockopt(*cur_fd, SOL_SOCKET, SO_REUSEPORT,
54 "setsockopt(lfds[%u,%u], SO_REUSEPORT)",
H A Dreuseport_bpf.c2 * 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 Dfin_ack_lat.c125 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT,
H A Dreuseaddr_ports_exhausted.c11 * 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 Dreuseport_bpf_cpu.c3 * 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 Dreuseport_dualstack.c3 * 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 Dreuseport_addr_any.c80 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt,
82 error(1, errno, "failed to set SO_REUSEPORT");
H A Dreuseport_bpf_numa.c3 * 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 Dso_incoming_cpu.c136 ret = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &(int){1}, sizeof(int));
H A Dtcp_fastopen_backup_key.c10 * 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 Dudpgso_bench_rx.c138 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val)))
/linux-master/tools/testing/selftests/netfilter/
H A Dconnect_close.c59 setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one));
/linux-master/arch/mips/include/uapi/asm/
H A Dsocket.h33 #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */ macro
/linux-master/arch/alpha/include/uapi/asm/
H A Dsocket.h24 #define SO_REUSEPORT 0x0200 macro
/linux-master/include/uapi/asm-generic/
H A Dsocket.h27 #define SO_REUSEPORT 15 macro
/linux-master/tools/include/uapi/asm-generic/
H A Dsocket.h27 #define SO_REUSEPORT 15 macro
/linux-master/arch/parisc/include/uapi/asm/
H A Dsocket.h18 #define SO_REUSEPORT 0x0200 macro
/linux-master/arch/sparc/include/uapi/asm/
H A Dsocket.h20 #define SO_REUSEPORT 0x0200 macro
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_helpers.h367 err = xsetsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one));
H A Dmigrate_reuseport.c234 SO_REUSEPORT, &reuseport, sizeof(reuseport));
235 if (!ASSERT_OK(err, "setsockopt - SO_REUSEPORT"))

Completed in 212 milliseconds

12