/external/libselinux/src/ |
D | getpeercon.c | 26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon() 36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon()
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/ |
D | socket_test.cc | 403 ASSERT_EQ(0, ki_getsockopt(sock1_, SOL_SOCKET, SO_ERROR, in TEST_F() 409 ASSERT_EQ(-1, ki_getsockopt(sock1_, SOL_SOCKET, -1, &socket_error, &len)); in TEST_F() 420 ASSERT_EQ(-1, ki_setsockopt(sock1_, SOL_SOCKET, SO_ERROR, in TEST_F() 456 ASSERT_EQ(0, ki_getsockopt(sock1_, SOL_SOCKET, SO_KEEPALIVE, &value, &len)); in TEST_F() 471 ASSERT_EQ(0, ki_getsockopt(sock1_, SOL_SOCKET, SO_LINGER, &linger, &len)); in TEST_F() 475 ASSERT_EQ(0, ki_getsockopt(sock2_, SOL_SOCKET, SO_LINGER, &linger, &len)); in TEST_F() 483 ASSERT_EQ(0, ki_setsockopt(sock1_, SOL_SOCKET, SO_LINGER, &linger, len)); in TEST_F() 486 ASSERT_EQ(0, ki_setsockopt(sock2_, SOL_SOCKET, SO_LINGER, &linger, len)); in TEST_F() 489 ASSERT_EQ(0, ki_getsockopt(sock1_, SOL_SOCKET, SO_LINGER, &linger, &len)); in TEST_F() 493 ASSERT_EQ(0, ki_getsockopt(sock2_, SOL_SOCKET, SO_LINGER, &linger, &len)); in TEST_F() [all …]
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
D | socket_test.cc | 125 EXPECT_LT(ki_getsockopt(123, SOL_SOCKET, SO_ACCEPTCONN, optval, NULL), 0); in TEST_F() 127 EXPECT_LT(ki_getsockopt(123, SOL_SOCKET, SO_ACCEPTCONN, NULL, &len), 0); in TEST_F() 129 EXPECT_LT(ki_getsockopt(123, SOL_SOCKET, SO_ACCEPTCONN, NULL, NULL), 0); in TEST_F() 131 EXPECT_LT(ki_getsockopt(-1, SOL_SOCKET, SO_ACCEPTCONN, optval, &len), 0); in TEST_F() 133 EXPECT_LT(ki_getsockopt(0, SOL_SOCKET, SO_ACCEPTCONN, optval, &len), 0); in TEST_F() 225 EXPECT_EQ(-1, ki_setsockopt(123, SOL_SOCKET, SO_ACCEPTCONN, NULL, len)); in TEST_F() 229 EXPECT_EQ(-1, ki_setsockopt(-1, SOL_SOCKET, SO_ACCEPTCONN, optval, len)); in TEST_F() 233 EXPECT_EQ(-1, ki_setsockopt(0, SOL_SOCKET, SO_ACCEPTCONN, optval, len)); in TEST_F()
|
/external/iputils/ |
D | ping_common.c | 596 setsockopt(icmp_sock, SOL_SOCKET, SO_SNDBUF, (char *)&sndbuf, sizeof(sndbuf)); in sock_setbufs() 601 setsockopt(icmp_sock, SOL_SOCKET, SO_RCVBUF, (char *)&hold, sizeof(hold)); in sock_setbufs() 602 if (getsockopt(icmp_sock, SOL_SOCKET, SO_RCVBUF, (char *)&hold, &tmplen) == 0) { in sock_setbufs() 631 setsockopt(icmp_sock, SOL_SOCKET, SO_DEBUG, (char *)&hold, sizeof(hold)); in setup() 633 setsockopt(icmp_sock, SOL_SOCKET, SO_DONTROUTE, (char *)&hold, sizeof(hold)); in setup() 638 if (setsockopt(icmp_sock, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on))) in setup() 647 ret = setsockopt(icmp_sock, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)); in setup() 669 setsockopt(icmp_sock, SOL_SOCKET, SO_SNDTIMEO, (char*)&tv, sizeof(tv)); in setup() 675 if (setsockopt(icmp_sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&tv, sizeof(tv))) in setup() 829 if (c->cmsg_level != SOL_SOCKET || in main_loop()
|
D | traceroute6.c | 507 setsockopt(icmp_sock, SOL_SOCKET, SO_DEBUG, in main() 510 setsockopt(icmp_sock, SOL_SOCKET, SO_DONTROUTE, in main() 528 if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&datalen, in main() 536 (void) setsockopt(sndsock, SOL_SOCKET, SO_DEBUG, in main() 539 (void) setsockopt(sndsock, SOL_SOCKET, SO_DONTROUTE, in main() 551 if (setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device)+1) == -1) in main()
|
/external/netcat/ |
D | netcat.c | 606 if (setsockopt(s, SOL_SOCKET, SO_RTABLE, &rtableid, in remote_connect() 618 setsockopt(s, SOL_SOCKET, SO_BINDANY, &on, sizeof(on)); in remote_connect() 670 if ((ret = getsockopt(s, SOL_SOCKET, SO_ERROR, in timeout_connect() 728 ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &x, sizeof(x)); in local_listen() 730 ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &x, sizeof(x)); in local_listen() 961 if (setsockopt(s, SOL_SOCKET, SO_DEBUG, in set_common_sockopts() 967 if (setsockopt(s, SOL_SOCKET, SO_JUMBO, in set_common_sockopts() 978 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, in set_common_sockopts() 983 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, in set_common_sockopts()
|
/external/chromium/base/ |
D | sync_socket_posix.cc | 51 if (0 != setsockopt(handles[0], SOL_SOCKET, SO_NOSIGPIPE, in CreatePair() 53 0 != setsockopt(handles[1], SOL_SOCKET, SO_NOSIGPIPE, in CreatePair()
|
/external/openssl/crypto/bio/ |
D | bss_dgram.c | 280 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 290 if ( getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 326 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 330 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &timeleft, in dgram_adjust_rcv_timeout() 350 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_reset_rcv_timeout() 354 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &(data->socket_timeout), in dgram_reset_rcv_timeout() 732 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 737 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, ptr, in dgram_ctrl() 750 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 761 if ( getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/bio/ |
D | bss_dgram.c | 280 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 290 if ( getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 326 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 330 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &timeleft, in dgram_adjust_rcv_timeout() 350 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_reset_rcv_timeout() 354 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &(data->socket_timeout), in dgram_reset_rcv_timeout() 732 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 737 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, ptr, in dgram_ctrl() 750 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 761 if ( getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() [all …]
|
/external/dnsmasq/src/ |
D | network.c | 291 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 292 setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 341 if (setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners() 348 setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners() 422 setsockopt(new->fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listener() 423 setsockopt(new->tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listener() 472 setsockopt(new->tftpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listener() 560 setsockopt(new->fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners() 561 setsockopt(new->tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners() 611 setsockopt(new->tftpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners() [all …]
|
/external/valgrind/main/none/tests/ |
D | fdleak_cmsg.c | 68 cmsg->cmsg_level = SOL_SOCKET; in server() 132 if (cmsg->cmsg_level == SOL_SOCKET && in client()
|
/external/chromium_org/net/tools/quic/test_tools/ |
D | quic_server_peer.cc | 18 server->fd_, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) != -1; in SetSmallSocket()
|
/external/chromium_org/chrome/test/chromedriver/net/ |
D | port_server.cc | 80 SOL_SOCKET, in RequestPort() 85 SOL_SOCKET, in RequestPort()
|
/external/qemu/ |
D | migration-tcp.c | 61 ret = getsockopt(s->fd, SOL_SOCKET, SO_ERROR, (void *) &val, &valsize); in tcp_wait_for_connect() 195 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (const char *)&val, sizeof(val)); in tcp_start_incoming_migration()
|
/external/chromium_org/base/posix/ |
D | unix_domain_socket_linux.cc | 38 cmsg->cmsg_level = SOL_SOCKET; in SendMsg() 91 if (cmsg->cmsg_level == SOL_SOCKET && in RecvMsgWithFlags()
|
/external/kernel-headers/original/asm-arm/ |
D | socket.h | 7 #define SOL_SOCKET 1 macro
|
/external/kernel-headers/original/asm-generic/ |
D | socket.h | 7 #define SOL_SOCKET 1 macro
|
/external/chromium_org/net/tools/flip_server/ |
D | create_listener.cc | 147 SOL_SOCKET, in CreateListeningSocket() 164 SOL_SOCKET, in CreateListeningSocket()
|
/external/chromium_org/base/ |
D | sync_socket_posix.cc | 82 if (0 != setsockopt(handles[0], SOL_SOCKET, SO_NOSIGPIPE, in CreatePair() 84 0 != setsockopt(handles[1], SOL_SOCKET, SO_NOSIGPIPE, in CreatePair()
|
/external/chromium/net/tools/flip_server/ |
D | create_listener.cc | 154 rc = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, in CreateListeningSocket() 168 rc = setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, in CreateListeningSocket()
|
/external/openssh/ |
D | roaming_common.c | 58 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &optval, &optvallen) != 0) in get_snd_buf_size() 70 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &optval, &optvallen) != 0) in get_recv_buf_size()
|
/external/openssh/openbsd-compat/ |
D | bsd-getpeereid.c | 33 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cred, &len) < 0) in getpeereid()
|
/external/kernel-headers/original/asm-mips/ |
D | socket.h | 19 #define SOL_SOCKET 0xffff macro
|
/external/chromium_org/net/udp/ |
D | udp_socket_libevent.cc | 320 int rv = setsockopt(socket_, SOL_SOCKET, SO_RCVBUF, in SetReceiveBufferSize() 328 int rv = setsockopt(socket_, SOL_SOCKET, SO_SNDBUF, in SetSendBufferSize() 519 int rv = setsockopt(socket_, SOL_SOCKET, SO_REUSEADDR, &true_value, in SetSocketOptions() 530 rv = setsockopt(socket_, SOL_SOCKET, SO_REUSEPORT, &true_value, in SetSocketOptions() 533 rv = setsockopt(socket_, SOL_SOCKET, SO_BROADCAST, &true_value, in SetSocketOptions()
|
/external/chromium_org/net/socket/ |
D | tcp_socket_libevent.cc | 53 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on))) { in SetTCPKeepAlive() 478 int rv = setsockopt(socket_, SOL_SOCKET, SO_REUSEADDR, &boolean_value, in SetAddressReuse() 487 int rv = setsockopt(socket_, SOL_SOCKET, SO_RCVBUF, in SetReceiveBufferSize() 496 int rv = setsockopt(socket_, SOL_SOCKET, SO_SNDBUF, in SetSendBufferSize() 769 if (getsockopt(socket_, SOL_SOCKET, SO_ERROR, &os_error, &len) < 0) in DidCompleteConnect()
|