Home
last modified time | relevance | path

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

12345678

/external/autotest/client/cros/netprotos/
Dinterface_host.py123 self._recv_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
134 self._send_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
/external/dnsmasq/src/
Dnetwork.c254 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener()
255 setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener()
296 if (setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners()
302 setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || !fix_fd(fd) || in create_wildcard_listeners()
368 setsockopt(new->fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listener()
369 setsockopt(new->tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listener()
525 setsockopt(new->fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners()
526 setsockopt(new->tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners()
/external/strace/xlat/
Dsock_options.h14 #if defined(SO_REUSEADDR) || (defined(HAVE_DECL_SO_REUSEADDR) && HAVE_DECL_SO_REUSEADDR)
16 static_assert((SO_REUSEADDR) == (4), "SO_REUSEADDR != 4");
19 # define SO_REUSEADDR 4
22 #if defined(SO_REUSEADDR) || (defined(HAVE_DECL_SO_REUSEADDR) && HAVE_DECL_SO_REUSEADDR)
24 static_assert((SO_REUSEADDR) == (2), "SO_REUSEADDR != 2");
27 # define SO_REUSEADDR 2
1438 XLAT(SO_REUSEADDR),
1440 XLAT(SO_REUSEADDR),
/external/honggfuzz/examples/bind/
Dbind-9.13.5-W1.patch62 + if (setsockopt(myfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) == -1) {
63 + perror("setsockopt(SO_REUSEADDR)");
162 + if (setsockopt(myfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) == -1) {
163 + perror("setsockopt(SO_REUSEADDR)");
Dbind-9.13.2.patch108 + if (setsockopt(myfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) == -1) {
109 + perror("setsockopt(SO_REUSEADDR)");
206 + if (setsockopt(myfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) == -1) {
207 + perror("setsockopt(SO_REUSEADDR)");
/external/u-boot/tools/
Dncb.c21 setsockopt (3, SOL_SOCKET, SO_REUSEADDR, &o, len); in main()
/external/oj-libjdwp/src/solaris/transport/socket/
Dsocket_md.c218 } else if (cmd == SO_REUSEADDR) { in dbgsysSetSocketOption()
220 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, in dbgsysSetSocketOption()
/external/kernel-headers/original/uapi/asm-generic/
Dsocket.h11 #define SO_REUSEADDR 2 macro
/external/python/cpython2/Demo/pysvr/
Dpysvr.c116 #ifdef SO_REUSEADDR in main_thread()
118 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *) &i, sizeof i); in main_thread()
/external/kernel-headers/original/uapi/asm-mips/asm/
Dsocket.h23 #define SO_REUSEADDR 0x0004 /* Allow reuse of local addresses. */ macro
/external/syzkaller/sys/netbsd/
Dsocket_amd64.const73 SO_REUSEADDR = 4
/external/grpc-grpc/src/php/tests/interop/
Dstress_client.php29 socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1);
/external/syzkaller/sys/freebsd/
Dsocket_amd64.const91 SO_REUSEADDR = 4
/external/python/cpython2/Lib/plat-os2emx/
DSOCKET.py16 SO_REUSEADDR = 0x0004 variable
/external/grpc-grpc/src/core/lib/iomgr/
Dsocket_utils_common_posix.cc149 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val))) { in grpc_set_socket_reuse_addr()
152 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr()
/external/tensorflow/tensorflow/core/platform/posix/
Dnet.cc52 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) < 0) { in IsPortAvailable()
/external/python/cpython2/Demo/sockets/
Dmcast.py58 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
/external/python/cpython3/Tools/demo/
Dmcast.py60 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseaddr_conflict.c62 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, in open_port()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/Server/
Dserver.cpp71 if (setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,&yes,sizeof(int)) == -1) { in main()
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_reconnect_test.py41 return socket.SO_REUSEADDR
/external/ltp/testcases/network/multicast/mc_commo/
Dmc_recv.c69 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) < 0) { in main()
/external/parameter-framework/asio-1.10.6/include/asio/
Dsocket_base.hpp316 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_REUSEADDR)>
/external/grpc-grpc/third_party/nanopb/examples/network_server/
Dserver.c119 setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/Server/
Dserver.cpp70 if (setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,&yes,sizeof(int)) == -1) { in main()

12345678