/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/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 | 268 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 277 if ( getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 311 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 315 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &timeleft, in dgram_adjust_rcv_timeout() 335 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_reset_rcv_timeout() 339 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &(data->socket_timeout), in dgram_reset_rcv_timeout() 719 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 724 if ( setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, ptr, in dgram_ctrl() 734 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 745 if ( getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() [all …]
|
/external/ping/ |
D | ping.c | 468 setsockopt(icmp_sock, SOL_SOCKET, SO_SNDBUF, (char *)&sndbuf, sizeof(sndbuf)); in sock_setbufs() 473 setsockopt(icmp_sock, SOL_SOCKET, SO_RCVBUF, (char *)&hold, sizeof(hold)); in sock_setbufs() 474 if (getsockopt(icmp_sock, SOL_SOCKET, SO_RCVBUF, (char *)&hold, &tmplen) == 0) { in sock_setbufs() 502 setsockopt(icmp_sock, SOL_SOCKET, SO_DEBUG, (char *)&hold, sizeof(hold)); in setup() 504 setsockopt(icmp_sock, SOL_SOCKET, SO_DONTROUTE, (char *)&hold, sizeof(hold)); in setup() 509 if (setsockopt(icmp_sock, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on))) in setup() 524 setsockopt(icmp_sock, SOL_SOCKET, SO_SNDTIMEO, (char*)&tv, sizeof(tv)); in setup() 530 if (setsockopt(icmp_sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&tv, sizeof(tv))) in setup() 681 if (c->cmsg_level != SOL_SOCKET || in main_loop() 1659 if (setsockopt(icmp_sock, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter))) in install_filter() [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()
|
D | fdleak_ipv4.c | 23 DO( setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(int)) ); in server()
|
/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/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() 413 setsockopt(new->fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners() 414 setsockopt(new->tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners() 464 setsockopt(new->tftpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listeners() 556 setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, intname, strlen(intname)) == -1) in local_bind()
|
/external/kernel-headers/original/asm-arm/ |
D | socket.h | 7 #define SOL_SOCKET 1 macro
|
/external/kernel-headers/original/asm-x86/ |
D | socket.h | 7 #define SOL_SOCKET 1 macro
|
/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/bluetooth/bluez/test/ |
D | rctest.c | 177 if (setsockopt(sk, SOL_SOCKET, SO_TIMESTAMP, &t, sizeof(t)) < 0) { in do_connect() 189 if (setsockopt(sk, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) < 0) { in do_connect() 361 if (setsockopt(nsk, SOL_SOCKET, SO_TIMESTAMP, &t, sizeof(t)) < 0) { in do_listen() 373 if (setsockopt(nsk, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) < 0) { in do_listen()
|
D | l2test.c | 249 if (setsockopt(sk, SOL_SOCKET, SO_TIMESTAMP, &t, sizeof(t)) < 0) { in do_connect() 261 if (setsockopt(sk, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) < 0) { in do_connect() 513 if (setsockopt(nsk, SOL_SOCKET, SO_TIMESTAMP, &t, sizeof(t)) < 0) { in do_listen() 525 if (setsockopt(nsk, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) < 0) { in do_listen() 594 if (getsockopt(sk, SOL_SOCKET, SO_ERROR, &opt, &optlen) < 0) { in dump_mode() 663 if (getsockopt(sk, SOL_SOCKET, SO_ERROR, &opt, &optlen) < 0) { in recv_mode()
|
/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/net/socket/ |
D | tcp_client_socket_libevent.cc | 57 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &optval, optlen)) { in SetTCPKeepAlive() 490 int rv = setsockopt(socket_, SOL_SOCKET, SO_RCVBUF, in SetReceiveBufferSize() 499 int rv = setsockopt(socket_, SOL_SOCKET, SO_SNDBUF, in SetSendBufferSize() 602 if (getsockopt(socket_, SOL_SOCKET, SO_ERROR, &os_error, &len) < 0) in DidCompleteConnect()
|
/external/openssl/apps/ |
D | s_socket.c | 276 i=setsockopt(s,SOL_SOCKET,SO_KEEPALIVE,(char *)&i,sizeof(i)); in init_client_ip() 352 #if defined SOL_SOCKET && defined SO_REUSEADDR in init_server_long() 355 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, in init_server_long()
|
/external/bluetooth/bluez/compat/ |
D | bnep.c | 293 setsockopt(sk, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo)); in bnep_create_connection() 307 setsockopt(sk, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo)); in bnep_create_connection()
|
/external/dropbear/ |
D | dbutil.c | 175 setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &val, sizeof(val)); in set_sock_priority() 252 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &val, sizeof(val)); in dropbear_listen() 255 setsockopt(sock, SOL_SOCKET, SO_LINGER, (void*)&linger, sizeof(linger)); in dropbear_listen()
|
/external/bluetooth/bluez/audio/ |
D | ipc.c | 108 if (cmsg->cmsg_level == SOL_SOCKET in bt_audio_service_get_data_fd()
|
/external/libpcap/ |
D | pcap-linux.c | 1648 if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &err, &errlen) == -1) { in iface_bind() 1919 if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &err, &errlen) == -1) { in iface_bind_old() 2144 if (setsockopt(handle->fd, SOL_SOCKET, SO_ATTACH_FILTER, in set_kernel_filter() 2180 ret = setsockopt(handle->fd, SOL_SOCKET, SO_ATTACH_FILTER, in set_kernel_filter() 2218 return setsockopt(handle->fd, SOL_SOCKET, SO_DETACH_FILTER, in reset_kernel_filter()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_wired.c | 283 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_REUSEADDR, (char *) &n, in wired_init_sockets() 288 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BROADCAST, (char *) &n, in wired_init_sockets() 296 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BINDTODEVICE, in wired_init_sockets()
|
/external/dbus/dbus/ |
D | sd-daemon.c | 176 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, &other_type, &l) < 0) in sd_is_socket_internal() 190 if (getsockopt(fd, SOL_SOCKET, SO_ACCEPTCONN, &accepting, &l) < 0) in sd_is_socket_internal()
|