Home
last modified time | relevance | path

Searched refs:setsockopt (Results 1 – 25 of 42) sorted by relevance

12

/system/connectivity/shill/net/
Dsockets.cc49 return setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, pf, sizeof(*pf)); in AttachFilter()
63 return setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE, &dev_name, in BindToDevice()
69 return setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &value, sizeof(value)); in ReuseAddress()
76 return setsockopt(sockfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)); in AddMulticastMembership()
162 return setsockopt(sockfd, SOL_SOCKET, SO_RCVBUFFORCE, &size, sizeof(size)); in SetReceiveBuffer()
Dnetlink_socket.cc140 int err = setsockopt(file_descriptor_, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, in SubscribeToEvents()
/system/core/libcutils/
Dsocket_inaddr_any_server_windows.c53 if (setsockopt(sock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char*)&exclusive, in socket_inaddr_any_server()
55 setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&v6_only, in socket_inaddr_any_server()
Duevent.c119 setsockopt(s, SOL_SOCKET, SO_RCVBUFFORCE, &buf_sz, sizeof(buf_sz)); in uevent_open_socket()
120 setsockopt(s, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)); in uevent_open_socket()
Ddebugger.c61 if (setsockopt(sock_fd, SOL_SOCKET, SO_RCVTIMEO, &tm, sizeof(tm)) == -1) { in make_dump_request()
65 if (setsockopt(sock_fd, SOL_SOCKET, SO_SNDTIMEO, &tm, sizeof(tm)) == -1) { in make_dump_request()
Dsocket_inaddr_any_server_unix.c47 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (const char *) &n, sizeof(n)); in socket_inaddr_any_server()
Dsocket_loopback_server_unix.c49 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (const char *) &n, sizeof(n)); in socket_loopback_server()
Dsockets_windows.cpp58 return setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, in socket_set_receive_timeout()
Dsocket_local_server_unix.c80 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n));
Dsockets_unix.cpp59 return setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in socket_set_receive_timeout()
/system/vold/
DNetlinkManager.cpp67 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { in start()
72 if (setsockopt(mSock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in start()
/system/extras/tests/net_test/
Dmultinetwork_test.py98 s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
270 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_FLOWINFO_SEND, 1)
280 s.setsockopt(net_test.SOL_IPV6, IPV6_DSTOPTS, dstopts)
281 s.setsockopt(net_test.SOL_IPV6, IPV6_UNICAST_HOPS, 255)
286 s.setsockopt(net_test.SOL_IPV6, IPV6_PKTINFO, pktinfo)
324 s.setsockopt(net_test.SOL_IP, IP_TTL, 39)
325 s.setsockopt(net_test.SOL_IP, IP_TOS, 0x83)
428 cls.listensocket.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
436 s.setsockopt(net_test.SOL_IP, IP_TOS, 53)
437 s.setsockopt(net_test.SOL_IP, IP_TOS, tos)
[all …]
Dping6_test.py423 s4.setsockopt(SOL_SOCKET, SO_REUSEADDR, 0)
474 s.setsockopt(SOL_IP, net_test.IP_TRANSPARENT, 1)
489 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_TRANSPARENT, 1)
578 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_FLOWINFO_SEND, 1)
596 s.setsockopt(SOL_IP, IP_TTL, 2)
597 s.setsockopt(SOL_IP, net_test.IP_RECVERR, 1)
605 s.setsockopt(net_test.SOL_IPV6, IPV6_UNICAST_HOPS, 2)
606 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_RECVERR, 1)
616 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_MULTICAST_IF, self.ifindex)
684 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_MULTICAST_IF, self.ifindex)
Dnet_test.py99 sock.setsockopt(SOL_SOCKET, SO_RCVTIMEO, struct.pack("LL", s, us))
105 s.setsockopt(level, option, tos)
157 sock.setsockopt(SOL_SOCKET, SO_LINGER, struct.pack("ii", 1, 0))
300 s.setsockopt(SOL_IPV6, IPV6_FLOWLABEL_MGR, opt)
/system/netd/server/
DNetlinkManager.cpp84 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { in setupSocket()
90 if (setsockopt(*sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in setupSocket()
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp36 if (setsockopt(s, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) == -1) { in setSoLinger()
40 if (setsockopt(s, SOL_TCP, TCP_LINGER2, &nolinger, sizeof(nolinger)) == -1) { in setSoLinger()
/system/connectivity/apmanager/init/
Dapmanager-seccomp-mips.policy3 setsockopt: 1
Dapmanager-seccomp-arm.policy3 setsockopt: 1
Dapmanager-seccomp-amd64.policy28 setsockopt: 1
/system/bt/osi/src/socket_utils/
Dsocket_local_server.c66 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n));
/system/core/adb/
Dtest_adb.py153 sock.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER,
171 listener.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
Dsysdeps.h293 #undef setsockopt
294 #define setsockopt ___xxx_setsockopt macro
777 return setsockopt( fd, level, optname, optval, optlen ); in adb_setsockopt()
780 #undef setsockopt
781 #define setsockopt ___xxx_setsockopt macro
/system/extras/multinetwork/
Dhttpurl.cpp150 setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo)); in makeTcpSocket()
151 setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &timeo, sizeof(timeo)); in makeTcpSocket()
/system/webservd/webservd/
Dprotocol_handler.cc204 if (setsockopt(socket_fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) { in Start()
209 if (setsockopt(socket_fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) { in Start()
228 if (setsockopt(socket_fd, IPPROTO_TCP, TCP_FASTOPEN, in Start()
/system/core/logd/
DLogListener.cpp132 if (setsockopt(sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in getLogSocket()

12