Home
last modified time | relevance | path

Searched refs:SO_REUSEADDR (Results 1 – 25 of 27) sorted by relevance

12

/tools/testing/selftests/net/
Dsk_bind_sendto_listen.c27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
49 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
Dbind_bhash.c78 sock_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr); in setup()
106 listener_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr); in main()
Dsk_connect_zero_addr.c27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
Dreuseaddr_conflict.c62 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, in open_port()
Dreuseaddr_ports_exhausted.c63 ret = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(int)); in bind_port()
Dfin_ack_lat.c125 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT, in main()
Dtcp_inq.c128 if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, in main()
Drxtimestamp.c258 if (setsockopt(rcv, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in config_so_flags()
Dtcp_mmap.c526 setsockopt(fdlisten, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); in main()
Dreuseport_bpf.c197 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) in send_from()
Dnettest.c578 if (setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) != 0) { in set_reuseaddr()
1355 if (setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, in msock_init()
/tools/testing/selftests/bpf/prog_tests/
Dcgroup_getset_retval.c38 if (!ASSERT_ERR(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in test_setsockopt_set()
78 if (!ASSERT_ERR(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in test_setsockopt_set_and_get()
117 if (!ASSERT_OK(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in test_setsockopt_default_zero()
158 if (!ASSERT_ERR(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in test_setsockopt_default_zero_and_set()
207 if (!ASSERT_ERR(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in test_setsockopt_override()
253 if (!ASSERT_ERR(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in test_setsockopt_legacy_eperm()
304 if (!ASSERT_ERR(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in test_setsockopt_legacy_no_override()
Dsk_lookup.c176 err = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, in make_server()
/tools/include/uapi/asm-generic/
Dsocket.h12 #define SO_REUSEADDR 2 macro
/tools/testing/selftests/netfilter/
Dconnect_close.c58 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); in do_accept()
/tools/testing/selftests/bpf/progs/
Dbpf_tracing_net.h9 #define SO_REUSEADDR 2 macro
Dsetget_sockopt.c41 { .opt = SO_REUSEADDR, .flip = 1, },
/tools/testing/vsock/
Dcontrol.c68 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, in control_init()
/tools/usb/usbip/src/
Dusbip_network.c215 ret = setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)); in usbip_net_set_reuseaddr()
/tools/testing/selftests/net/mptcp/
Dmptcp_inq.c112 if (-1 == setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, in sock_listen_mptcp()
Dmptcp_sockopt.c199 if (-1 == setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, in sock_listen_mptcp()
Dmptcp_connect.c313 if (-1 == setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, in sock_listen_mptcp()
/tools/testing/selftests/bpf/
Dtest_maps.c679 err = setsockopt(sfd[i], SOL_SOCKET, SO_REUSEADDR, in test_sockmap()
711 err = setsockopt(sfd[i], SOL_SOCKET, SO_REUSEADDR, in test_sockmap()
Dtest_sockmap.c318 err = setsockopt(*fds[i], SOL_SOCKET, SO_REUSEADDR, in sockmap_init_sockets()
/tools/testing/selftests/cgroup/
Dtest_memcontrol.c946 if (setsockopt(sk, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) < 0) in tcp_server()

12