/third_party/rust/crates/nix/test/sys/ |
D | test_sockopt.rs | 4 getsockopt, setsockopt, socket, sockopt, AddressFamily, SockFlag, 71 setsockopt(s, sockopt::Mark, &1337).unwrap(); in is_so_mark_functional() 86 setsockopt(fd, sockopt::SndBuf, &bufsize).unwrap(); in test_so_buf() 89 setsockopt(fd, sockopt::RcvBuf, &bufsize).unwrap(); in test_so_buf() 121 setsockopt(rsock, sockopt::TcpMaxSeg, &segsize).unwrap(); in test_so_tcp_maxseg() 202 setsockopt(fd, sockopt::TcpCongestion, &val).unwrap(); in test_tcp_congestion() 204 setsockopt( in test_tcp_congestion() 228 setsockopt(fd, sockopt::BindToDevice, &val).unwrap(); in test_bindtodevice() 242 setsockopt(fd, sockopt::KeepAlive, &true).unwrap(); in test_so_tcp_keepalive() 253 setsockopt(fd, sockopt::TcpKeepIdle, &(x + 1)).unwrap(); in test_so_tcp_keepalive() [all …]
|
D | test_socket.rs | 76 recvmsg, sendmsg, setsockopt, socket, sockopt::Timestamping, in test_timestamping() 101 setsockopt(rsock, Timestamping, &TimestampingFlag::all()).unwrap(); in test_timestamping() 423 setsockopt(rsock, UdpGsoSegment, &(segment_size as _)) in gso() 480 setsockopt(rsock, UdpGroSegment, &true) in gro() 846 accept, bind, sendmsg, setsockopt, socket, AddressFamily, AlgAddr, in test_af_alg_cipher() 882 setsockopt(sock, AlgSetKey::default(), &key).expect("setsockopt"); in test_af_alg_cipher() 927 accept, bind, sendmsg, setsockopt, socket, AddressFamily, AlgAddr, in test_af_alg_aead() 974 setsockopt(sock, AlgSetAeadAuthSize, &auth_size) in test_af_alg_aead() 976 setsockopt(sock, AlgSetKey::default(), &key).expect("setsockopt AlgSetKey"); in test_af_alg_aead() 1321 use nix::sys::socket::{setsockopt, sockopt::PassCred}; in test_scm_credentials() [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | socket-util.c | 145 if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, (const void *) &priority, sizeof(priority)) < 0) in pa_make_socket_low_delay() 159 if (setsockopt(fd, SOL_TCP, TCP_NODELAY, (const void *) &on, sizeof(on)) < 0) in pa_make_tcp_socket_low_delay() 161 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (const void *) &on, sizeof(on)) < 0) in pa_make_tcp_socket_low_delay() 171 if (setsockopt(fd, SOL_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_tcp_socket_low_delay() 173 if (setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_tcp_socket_low_delay() 189 if (setsockopt(fd, SOL_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_udp_socket_low_delay() 191 if (setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_udp_socket_low_delay() 203 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (const void *) &bufsz, sizeof(bufsz)) < 0) { in pa_socket_set_rcvbuf() 216 if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (const void *) &bufsz, sizeof(bufsz)) < 0) { in pa_socket_set_sndbuf()
|
/third_party/libwebsockets/lib/plat/unix/ |
D | unix-sockets.c | 120 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, in lws_plat_set_socket_options() 140 if (setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, in lws_plat_set_socket_options() 145 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, in lws_plat_set_socket_options() 150 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, in lws_plat_set_socket_options() 155 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, in lws_plat_set_socket_options() 164 if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, vhost->iface, in lws_plat_set_socket_options() 175 if (!unix_skt && setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 182 if (!unix_skt && setsockopt(fd, SOL_TCP, TCP_NODELAY, (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 186 if (!unix_skt && setsockopt(fd, tcp_proto->p_proto, TCP_NODELAY, &optval, optlen) < 0) in lws_plat_set_socket_options() 226 if (setsockopt(fd, IPPROTO_TCP, TCP_FASTOPEN_CONNECT, (void *)&optval, in lws_plat_set_socket_options_ip() [all …]
|
/third_party/openssl/crypto/bio/ |
D | bss_dgram.c | 253 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 258 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &timeleft, in dgram_adjust_rcv_timeout() 278 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_reset_rcv_timeout() 283 if (setsockopt in dgram_reset_rcv_timeout() 459 if ((ret = setsockopt(b->num, IPPROTO_IP, IP_MTU_DISCOVER, in dgram_ctrl() 466 if ((ret = setsockopt(b->num, IPPROTO_IPV6, IPV6_MTU_DISCOVER, in dgram_ctrl() 588 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 595 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, ptr, in dgram_ctrl() 639 if (setsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, in dgram_ctrl() 646 if (setsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, ptr, in dgram_ctrl() [all …]
|
D | bio_sock2.c | 92 if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in BIO_connect() 102 if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, in BIO_connect() 165 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, in BIO_bind() 246 if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in BIO_listen() 256 if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, in BIO_listen() 273 if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, in BIO_listen()
|
/third_party/python/Tools/demo/ |
D | mcast.py | 41 s.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl_bin) 43 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_HOPS, ttl_bin) 60 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 69 s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) 72 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, mreq)
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 119 error = setsockopt(-1, IPPROTO_SCTP, 0, 0, 0); in main() 132 error = setsockopt(fd, IPPROTO_SCTP, 0, 0, 0); in main() 144 error = setsockopt(sk, -1, SCTP_RTOINFO, 0, 0); in main() 152 error = setsockopt(sk, IPPROTO_SCTP, SCTP_RTOINFO, in main() 161 error = setsockopt(sk, IPPROTO_SCTP, SCTP_AUTOCLOSE, 0, 0); in main() 285 error = setsockopt(sk2, SOL_SOCKET, SO_LINGER, &slinger, len); in main() 330 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_set, len); in main() 349 error = setsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_set, len); in main() 391 error = setsockopt(sk2,IPPROTO_SCTP, SCTP_PRIMARY_ADDR, &sprimaddr, in main() 415 error = setsockopt(sk2, IPPROTO_SCTP, SCTP_ASSOCINFO, &sassocparams, in main()
|
D | test_sockopt.c | 547 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() 591 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() 607 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() 618 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_DELAYED_ACK_TIME, in main() 634 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() 648 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_DELAYED_ACK_TIME, in main() 664 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() 680 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() 696 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() 712 error = setsockopt(udp_clt_sk, SOL_SCTP, SCTP_PEER_ADDR_PARAMS, in main() [all …]
|
/third_party/toybox/toys/pending/ |
D | traceroute.c | 132 res = setsockopt(TT.snd_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); in send_probe4() 151 if (setsockopt(TT.snd_sock, SOL_IPV6, IPV6_UNICAST_HOPS, &ttl, in send_probe6() 164 if ((toys.optflags & FLAG_d) && (setsockopt(sock,SOL_SOCKET, SO_DEBUG, in set_flag_dr() 167 if ((toys.optflags & FLAG_r) && (setsockopt(sock, SOL_SOCKET, SO_DONTROUTE, in set_flag_dr() 176 if (setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &ifr, sizeof(ifr))) in bind_to_interface() 514 setsockopt(TT.recv_sock, SOL_IPV6, IPV6_RECVPKTINFO, &set, in traceroute_main() 516 setsockopt(TT.recv_sock, SOL_IPV6, IPV6_2292PKTINFO, &set, in traceroute_main() 519 setsockopt(TT.recv_sock, SOL_IPV6, IPV6_PKTINFO, &set, sizeof(set)); in traceroute_main() 522 if (setsockopt(TT.recv_sock, SOL_RAW, IPV6_CHECKSUM, &two, in traceroute_main() 552 if (setsockopt(TT.snd_sock, IPPROTO_IP, IP_OPTIONS, in traceroute_main() [all …]
|
/third_party/musl/src/network/ |
D | setsockopt.c | 9 int setsockopt(int fd, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() function 15 int r = __socketcall(setsockopt, fd, level, optname, optval, optlen, 0); in setsockopt() 32 r = __socketcall(setsockopt, fd, level, optname, in setsockopt() 40 r = __socketcall(setsockopt, fd, level, in setsockopt()
|
/third_party/libwebsockets/lib/plat/freertos/ |
D | freertos-sockets.c | 102 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, in lws_plat_set_socket_options() 118 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, in lws_plat_set_socket_options() 123 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, in lws_plat_set_socket_options() 128 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, in lws_plat_set_socket_options() 136 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &optval, optlen) < 0) in lws_plat_set_socket_options() 165 if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, in lws_plat_set_socket_options_ip() 183 if (setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *)&optval, in lws_plat_set_socket_options_ip()
|
/third_party/libuv/src/unix/ |
D | tcp.c | 164 if (setsockopt(tcp->io_watcher.fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) in uv__tcp_bind() 171 if (setsockopt(tcp->io_watcher.fd, in uv__tcp_bind() 323 if (0 != setsockopt(fd, SOL_SOCKET, SO_LINGER, &l, sizeof(l))) in uv_tcp_close_reset() 377 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on))) in uv__tcp_nodelay() 384 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on))) in uv__tcp_keepalive() 391 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &delay, sizeof(delay))) in uv__tcp_keepalive() 393 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &intvl, sizeof(intvl))) in uv__tcp_keepalive() 395 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt))) in uv__tcp_keepalive() 405 if (on && setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &delay, sizeof(delay))) in uv__tcp_keepalive()
|
D | udp.c | 492 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes))) in uv__set_reuse() 495 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(yes))) in uv__set_reuse() 499 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(yes))) in uv__set_reuse() 502 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes))) in uv__set_reuse() 521 if (setsockopt(fd, IPPROTO_IP, IP_RECVERR, &yes, sizeof(yes))) in uv__set_recverr() 524 if (setsockopt(fd, IPPROTO_IPV6, IPV6_RECVERR, &yes, sizeof(yes))) in uv__set_recverr() 572 if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &yes, sizeof yes) == -1) { in uv__udp_bind() 864 if (setsockopt(handle->io_watcher.fd, in uv__udp_set_membership4() 911 if (setsockopt(handle->io_watcher.fd, in uv__udp_set_membership6() 966 if (setsockopt(handle->io_watcher.fd, in uv__udp_set_source_membership4() [all …]
|
/third_party/ltp/testcases/network/multicast/mc_opts/ |
D | mc_verify_opts_error.c | 44 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, &simr, in main() 59 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) != 0) in main() 62 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_LOOP, &do_loop, sizeof(char)) in main() 65 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_LOOP, &no_loop, sizeof(char)) in main()
|
D | mc_verify_opts.c | 54 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, in main() 93 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, in main() 125 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, sizeof(char)) != in main()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | syscalls.rs | 440 fn setsockopt<T: Copy>( in setsockopt() function 455 ret(c::setsockopt( in setsockopt() 472 setsockopt( in set_socket_reuseaddr() 482 setsockopt( in set_socket_broadcast() 514 setsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER, linger) in set_socket_linger() 531 setsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED, from_bool(passcred)) in set_socket_passcred() 602 setsockopt(fd, c::SOL_SOCKET, optname, timeout) in set_socket_timeout() 641 setsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL, ttl) in set_ip_ttl() 651 setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY, from_bool(only_v6)) in set_ipv6_v6only() 664 setsockopt( in set_ip_multicast_loop() [all …]
|
/third_party/cups/ |
D | cups-freebind.patch | 6 setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, CUPS_SOCAST &val, sizeof(val)); 9 + setsockopt(fd, IPPROTO_IP, IP_FREEBIND, CUPS_SOCAST &val, sizeof(val)); 14 setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, CUPS_SOCAST &val, sizeof(val));
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | syscalls.rs | 817 fn setsockopt<T: Copy>( in setsockopt() function 865 setsockopt( in set_socket_reuseaddr() 875 setsockopt( in set_socket_broadcast() 907 setsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER, linger) in set_socket_linger() 923 setsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED, from_bool(passcred)) in set_socket_passcred() 942 match setsockopt(fd, c::SOL_SOCKET, optname, time) { in set_socket_timeout() 962 setsockopt(fd, c::SOL_SOCKET, optname, time) in set_socket_timeout_old() 1070 setsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL, ttl) in set_ip_ttl() 1080 setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY, from_bool(only_v6)) in set_ipv6_v6only() 1093 setsockopt( in set_ip_multicast_loop() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt06.c | 64 ret = setsockopt(sock, SOL_PACKET, PACKET_RX_RING, &req, in thread_run() 83 TEST(setsockopt(sock, SOL_PACKET, PACKET_VERSION, &val3, in run() 95 setsockopt(sock, SOL_PACKET, PACKET_VERSION, &val1, in run()
|
D | setsockopt07.c | 64 setsockopt(sock, SOL_PACKET, PACKET_RESERVE, &val, sizeof(val)); in thread_run() 87 TEST(setsockopt(sock, SOL_PACKET, PACKET_VERSION, &version, in run() 99 TEST(setsockopt(sock, SOL_PACKET, PACKET_RX_RING, &req, in run()
|
/third_party/ffmpeg/libavformat/ |
D | udp.c | 166 if (setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL, &mcastTTL, sizeof(mcastTTL)) < 0) { in udp_set_multicast_ttl() 174 … if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &mcastTTL, sizeof(mcastTTL)) < 0) { in udp_set_multicast_ttl() 194 … if (setsockopt(sockfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (const void *)&mreq, sizeof(mreq)) < 0) { in udp_join_multicast_group() 207 if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, &mreq6, sizeof(mreq6)) < 0) { in udp_join_multicast_group() 227 … if (setsockopt(sockfd, IPPROTO_IP, IP_DROP_MEMBERSHIP, (const void *)&mreq, sizeof(mreq)) < 0) { in udp_leave_multicast_group() 240 if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, &mreq6, sizeof(mreq6)) < 0) { in udp_leave_multicast_group() 271 if (setsockopt(sockfd, level, in udp_set_multicast_sources() 303 if (setsockopt(sockfd, IPPROTO_IP, in udp_set_multicast_sources() 767 …if (setsockopt (udp_fd, SOL_SOCKET, SO_REUSEADDR, &(s->reuse_socket), sizeof(s->reuse_socket)) != … in udp_open() 775 …if (setsockopt (udp_fd, SOL_SOCKET, SO_BROADCAST, &(s->is_broadcast), sizeof(s->is_broadcast)) != … in udp_open() [all …]
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
D | ns-mcast_join.c | 369 if (setsockopt(sd, level, MCAST_JOIN_GROUP, grp_info, in join_group() 386 if (setsockopt in join_group() 463 if (setsockopt(sd, level, MCAST_JOIN_GROUP, grp_info, in join_leave_group() 468 if (setsockopt(sd, level, MCAST_MSFILTER, gsf, in join_leave_group() 476 if (setsockopt(sd, level, MCAST_LEAVE_GROUP, grp_info, in join_leave_group()
|
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
D | io_raw.c | 76 ret = setsockopt(session->socket_fd, IPPROTO_TCP, TCP_NODELAY, &val, (socklen_t)sizeof(val)); in SPDYF_raw_new_session() 168 ret = setsockopt(session->socket_fd, IPPROTO_TCP, TCP_CORK, &val, (socklen_t)sizeof(val)); in SPDYF_raw_before_write() 187 ret = setsockopt(session->socket_fd, IPPROTO_TCP, TCP_CORK, &val, (socklen_t)sizeof(val)); in SPDYF_raw_after_write()
|
/third_party/libcoap/src/ |
D | coap_tcp.c | 87 …if (setsockopt(sock->fd, IPPROTO_IPV6, IPV6_V6ONLY, OPTVAL_T(&off), sizeof(off)) == COAP_SOCKET_ER… 100 …if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR) 223 if (setsockopt (sock->fd, SOL_SOCKET, SO_KEEPALIVE, OPTVAL_T(&on), 229 if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), 241 …if (setsockopt(sock->fd, IPPROTO_IPV6, IPV6_V6ONLY, OPTVAL_T(&off), sizeof(off)) == COAP_SOCKET_ER…
|