Home
last modified time | relevance | path

Searched refs:SOL_SOCKET (Results 1 – 25 of 148) sorted by relevance

123456

/external/libselinux/src/
Dgetpeercon.c26 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/
Dsocket_test.cc403 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/
Dsocket_test.cc125 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/
Dping_common.c596 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()
Dtraceroute6.c507 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/
Dnetcat.c606 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/
Dsync_socket_posix.cc51 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/
Dbss_dgram.c280 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/
Dbss_dgram.c280 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/
Dnetwork.c291 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/
Dfdleak_cmsg.c68 cmsg->cmsg_level = SOL_SOCKET; in server()
132 if (cmsg->cmsg_level == SOL_SOCKET && in client()
/external/chromium_org/net/tools/quic/test_tools/
Dquic_server_peer.cc18 server->fd_, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) != -1; in SetSmallSocket()
/external/chromium_org/chrome/test/chromedriver/net/
Dport_server.cc80 SOL_SOCKET, in RequestPort()
85 SOL_SOCKET, in RequestPort()
/external/qemu/
Dmigration-tcp.c61 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/
Dunix_domain_socket_linux.cc38 cmsg->cmsg_level = SOL_SOCKET; in SendMsg()
91 if (cmsg->cmsg_level == SOL_SOCKET && in RecvMsgWithFlags()
/external/kernel-headers/original/asm-arm/
Dsocket.h7 #define SOL_SOCKET 1 macro
/external/kernel-headers/original/asm-generic/
Dsocket.h7 #define SOL_SOCKET 1 macro
/external/chromium_org/net/tools/flip_server/
Dcreate_listener.cc147 SOL_SOCKET, in CreateListeningSocket()
164 SOL_SOCKET, in CreateListeningSocket()
/external/chromium_org/base/
Dsync_socket_posix.cc82 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/
Dcreate_listener.cc154 rc = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, in CreateListeningSocket()
168 rc = setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, in CreateListeningSocket()
/external/openssh/
Droaming_common.c58 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/
Dbsd-getpeereid.c33 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cred, &len) < 0) in getpeereid()
/external/kernel-headers/original/asm-mips/
Dsocket.h19 #define SOL_SOCKET 0xffff macro
/external/chromium_org/net/udp/
Dudp_socket_libevent.cc320 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/
Dtcp_socket_libevent.cc53 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()

123456