/external/rust/crates/nix/test/sys/ |
D | test_sockopt.rs | 2 use nix::sys::socket::{socket, sockopt, getsockopt, setsockopt, AddressFamily, SockType, SockFlag, … 14 setsockopt(s, sockopt::Mark, &1337).unwrap(); in is_so_mark_functional() 24 setsockopt(fd, sockopt::SndBuf, &bufsize).unwrap(); in test_so_buf() 27 setsockopt(fd, sockopt::RcvBuf, &bufsize).unwrap(); in test_so_buf() 47 setsockopt(fd, sockopt::TcpCongestion, &val).unwrap(); in test_tcp_congestion() 49 …setsockopt(fd, sockopt::TcpCongestion, &OsString::from("tcp_congestion_does_not_exist")).unwrap_er… in test_tcp_congestion() 65 setsockopt(fd, sockopt::BindToDevice, &val).unwrap(); in test_bindtodevice() 76 setsockopt(fd, sockopt::KeepAlive, &true).unwrap(); in test_so_tcp_keepalive() 85 setsockopt(fd, sockopt::TcpKeepIdle, &(x + 1)).unwrap(); in test_so_tcp_keepalive() 89 setsockopt(fd, sockopt::TcpKeepCount, &(x + 1)).unwrap(); in test_so_tcp_keepalive() [all …]
|
/external/strace/tests/ |
D | net-icmp_filter.c | 43 setsockopt(-1, SOL_RAW, ICMP_FILTER, NULL, 0); in main() 55 setsockopt(-1, SOL_RAW, ICMP_FILTER, efault, sizeof(*f)); in main() 67 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, -2); in main() 71 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, sizeof(*f)); in main() 77 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, sizeof(*f) * 2); in main()
|
D | ip_mreq.c | 119 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 126 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 133 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 140 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 147 rc = setsockopt(0, opts[i].level, opts[i].name, in main()
|
/external/strace/tests-mx32/ |
D | net-icmp_filter.c | 43 setsockopt(-1, SOL_RAW, ICMP_FILTER, NULL, 0); in main() 55 setsockopt(-1, SOL_RAW, ICMP_FILTER, efault, sizeof(*f)); in main() 67 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, -2); in main() 71 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, sizeof(*f)); in main() 77 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, sizeof(*f) * 2); in main()
|
D | ip_mreq.c | 119 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 126 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 133 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 140 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 147 rc = setsockopt(0, opts[i].level, opts[i].name, in main()
|
/external/strace/tests-m32/ |
D | net-icmp_filter.c | 43 setsockopt(-1, SOL_RAW, ICMP_FILTER, NULL, 0); in main() 55 setsockopt(-1, SOL_RAW, ICMP_FILTER, efault, sizeof(*f)); in main() 67 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, -2); in main() 71 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, sizeof(*f)); in main() 77 setsockopt(-1, SOL_RAW, ICMP_FILTER, f, sizeof(*f) * 2); in main()
|
D | ip_mreq.c | 119 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 126 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 133 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 140 rc = setsockopt(0, opts[i].level, opts[i].name, in main() 147 rc = setsockopt(0, opts[i].level, opts[i].name, in main()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | socket_utils_common_posix.cc | 75 if (0 != setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val))) { in grpc_set_socket_no_sigpipe_if_possible() 91 if (0 != setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip, in grpc_set_socket_ip_pktinfo_if_possible() 102 if (0 != setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip, in grpc_set_socket_ipv6_recvpktinfo_if_possible() 111 return 0 == setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buffer_size_bytes, in grpc_set_socket_sndbuf() 118 return 0 == setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &buffer_size_bytes, in grpc_set_socket_rcvbuf() 149 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val))) { in grpc_set_socket_reuse_addr() 171 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val))) { in grpc_set_socket_reuse_port() 214 if (0 != setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val))) { in grpc_set_socket_low_latency() 297 if (0 != setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &timeout, in grpc_set_socket_tcp_user_timeout() 360 return 0 == setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &off, sizeof(off)); in set_socket_dualstack() [all …]
|
/external/python/cpython2/Demo/sockets/ |
D | mcast.py | 39 s.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl_bin) 41 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_HOPS, ttl_bin) 58 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 67 s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) 70 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, mreq)
|
/external/python/cpython3/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)
|
/external/iperf3/src/ |
D | iperf_tcp.c | 201 if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen() 212 if (setsockopt(s, IPPROTO_TCP, TCP_MAXSEG, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen() 222 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen() 230 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen() 248 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_tcp_listen() 263 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen() 283 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, in iperf_tcp_listen() 468 if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)) < 0) { in iperf_tcp_connect() 478 if (setsockopt(s, IPPROTO_TCP, TCP_MAXSEG, &opt, sizeof(opt)) < 0) { in iperf_tcp_connect() 488 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt)) < 0) { in iperf_tcp_connect() [all …]
|
D | iperf_sctp.c | 196 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt)) < 0) { in iperf_sctp_listen() 204 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)) < 0) { in iperf_sctp_listen() 221 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, in iperf_sctp_listen() 234 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) < 0) { in iperf_sctp_listen() 321 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt)) < 0) { in iperf_sctp_connect() 329 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)) < 0) { in iperf_sctp_connect() 402 if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(opt)) < 0) { in iperf_sctp_connect() 435 if (setsockopt(s, IPPROTO_SCTP, SCTP_MAXSEG, &av, sizeof(av)) < 0) { in iperf_sctp_connect() 450 if (setsockopt(s, IPPROTO_SCTP, SCTP_MAXSEG, &opt, sizeof(opt)) < 0 && in iperf_sctp_connect() 468 if (setsockopt(s, IPPROTO_SCTP, SCTP_INITMSG, &initmsg, sizeof(struct sctp_initmsg)) < 0) { in iperf_sctp_connect() [all …]
|
/external/libwebsockets/lib/plat/unix/ |
D | unix-sockets.c | 108 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, in lws_plat_set_socket_options() 128 if (setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, in lws_plat_set_socket_options() 133 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, in lws_plat_set_socket_options() 138 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, in lws_plat_set_socket_options() 143 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, in lws_plat_set_socket_options() 152 if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, vhost->iface, in lws_plat_set_socket_options() 163 if (!unix_skt && setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 170 if (!unix_skt && setsockopt(fd, SOL_TCP, TCP_NODELAY, (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 174 if (!unix_skt && setsockopt(fd, tcp_proto->p_proto, TCP_NODELAY, &optval, optlen) < 0) in lws_plat_set_socket_options() 380 if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, &i, sizeof(i)) < 0) { in lws_plat_BINDTODEVICE()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 115 error = setsockopt(-1, IPPROTO_SCTP, 0, 0, 0); in main() 128 error = setsockopt(fd, IPPROTO_SCTP, 0, 0, 0); in main() 140 error = setsockopt(sk, -1, SCTP_RTOINFO, 0, 0); in main() 148 error = setsockopt(sk, IPPROTO_SCTP, SCTP_RTOINFO, in main() 157 error = setsockopt(sk, IPPROTO_SCTP, SCTP_AUTOCLOSE, 0, 0); in main() 281 error = setsockopt(sk2, SOL_SOCKET, SO_LINGER, &slinger, len); in main() 326 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_set, len); in main() 345 error = setsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_set, len); in main() 387 error = setsockopt(sk2,IPPROTO_SCTP, SCTP_PRIMARY_ADDR, &sprimaddr, in main() 411 error = setsockopt(sk2, IPPROTO_SCTP, SCTP_ASSOCINFO, &sassocparams, in main()
|
/external/dnsmasq/src/ |
D | network.c | 254 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 255 setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 256 setsockopt(fd, IPV6_LEVEL, IPV6_V6ONLY, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 257 setsockopt(tcpfd, IPV6_LEVEL, IPV6_V6ONLY, &opt, sizeof(opt)) == -1 || !fix_fd(fd) || in create_ipv6_listener() 260 setsockopt(fd, IPV6_LEVEL, IPV6_RECVPKTINFO, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 262 setsockopt(fd, IPV6_LEVEL, IPV6_PKTINFO, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 296 if (setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners() 302 setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || !fix_fd(fd) || in create_wildcard_listeners() 304 setsockopt(fd, SOL_IP, IP_PKTINFO, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners() 306 setsockopt(fd, IPPROTO_IP, IP_RECVDSTADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners() [all …]
|
/external/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()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | socket_utils_common_posix.cc | 59 auto err = setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, &enable, sizeof(enable)); in grpc_set_socket_zerocopy() 94 if (0 != setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val))) { in grpc_set_socket_no_sigpipe_if_possible() 115 if (0 != setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip, in grpc_set_socket_ip_pktinfo_if_possible() 128 if (0 != setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip, in grpc_set_socket_ipv6_recvpktinfo_if_possible() 137 return 0 == setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buffer_size_bytes, in grpc_set_socket_sndbuf() 144 return 0 == setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &buffer_size_bytes, in grpc_set_socket_rcvbuf() 175 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val))) { in grpc_set_socket_reuse_addr() 197 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val))) { in grpc_set_socket_reuse_port() 238 if (0 != setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val))) { in grpc_set_socket_low_latency() 363 if (0 != setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &timeout, in grpc_set_socket_tcp_user_timeout()
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_sk.c | 26 err = setsockopt(fd, SOL_IP, IP_TOS, &buf, 1); in getsetsockopt() 49 err = setsockopt(fd, SOL_IP, IP_TTL, &buf, 1); in getsetsockopt() 58 err = setsockopt(fd, SOL_CUSTOM, 0, &buf, 1); in getsetsockopt() 84 err = setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buf, 4); in getsetsockopt() 107 err = setsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, strlen("nv")); in getsetsockopt()
|
D | sockopt_multi.c | 67 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 141 if (setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1) < 0) { in run_getsockopt_test() 179 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 216 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test() 243 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test() 270 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test()
|
/external/iputils/ |
D | tracepath6.c | 480 if (setsockopt(fd, SOL_IPV6, IPV6_MTU_DISCOVER, &on, sizeof(on)) && in main() 482 setsockopt(fd, SOL_IPV6, IPV6_MTU_DISCOVER, &on, sizeof(on)))) { in main() 487 if (setsockopt(fd, SOL_IPV6, IPV6_RECVERR, &on, sizeof(on))) { in main() 493 setsockopt(fd, SOL_IPV6, IPV6_HOPLIMIT, &on, sizeof(on)) && in main() 494 setsockopt(fd, SOL_IPV6, IPV6_2292HOPLIMIT, &on, sizeof(on)) in main() 496 setsockopt(fd, SOL_IPV6, IPV6_HOPLIMIT, &on, sizeof(on)) in main() 514 if (setsockopt(fd, SOL_IP, IP_MTU_DISCOVER, &on, sizeof(on))) { in main() 519 if (setsockopt(fd, SOL_IP, IP_RECVERR, &on, sizeof(on))) { in main() 523 if (setsockopt(fd, SOL_IP, IP_RECVTTL, &on, sizeof(on))) { in main() 542 if (setsockopt(fd, SOL_IPV6, IPV6_UNICAST_HOPS, &on, sizeof(on))) { in main() [all …]
|
D | traceroute6.c | 500 setsockopt(icmp_sock, SOL_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)); in main() 501 setsockopt(icmp_sock, SOL_IPV6, IPV6_2292PKTINFO, &on, sizeof(on)); in main() 503 setsockopt(icmp_sock, SOL_IPV6, IPV6_PKTINFO, &on, sizeof(on)); in main() 507 setsockopt(icmp_sock, SOL_SOCKET, SO_DEBUG, in main() 510 setsockopt(icmp_sock, SOL_SOCKET, SO_DONTROUTE, in main() 515 if (setsockopt(icmp_sock, SOL_RAW, IPV6_CHECKSUM, &on, sizeof(on)) < 0) { 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() [all …]
|
D | ping.c | 163 (setsockopt(icmp_sock, IPPROTO_IP, IP_TOS, in main() 333 rc = setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device)+1); in main() 345 if (setsockopt(probe_fd, SOL_IP, IP_MULTICAST_IF, &imr, sizeof(imr)) == -1) { in main() 357 setsockopt(probe_fd, IPPROTO_IP, IP_TOS, (char *)&settos, sizeof(int)) < 0) in main() 373 if (setsockopt(probe_fd, SOL_SOCKET, SO_BROADCAST, in main() 458 if (setsockopt(icmp_sock, SOL_IP, IP_MTU_DISCOVER, &pmtudisc, sizeof(pmtudisc)) == -1) { in main() 478 if (setsockopt(icmp_sock, SOL_RAW, ICMP_FILTER, (char*)&filt, sizeof(filt)) == -1) in main() 483 if (setsockopt(icmp_sock, SOL_IP, IP_RECVERR, (char *)&hold, sizeof(hold))) in main() 486 if (setsockopt(icmp_sock, SOL_IP, IP_RECVTTL, (char *)&hold, sizeof(hold))) in main() 488 if (setsockopt(icmp_sock, SOL_IP, IP_RETOPTS, (char *)&hold, sizeof(hold))) in main() [all …]
|
/external/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 …]
|
/external/libwebsockets/lib/plat/freertos/ |
D | freertos-sockets.c | 94 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, in lws_plat_set_socket_options() 110 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, in lws_plat_set_socket_options() 115 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, in lws_plat_set_socket_options() 120 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, in lws_plat_set_socket_options() 128 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &optval, optlen) < 0) in lws_plat_set_socket_options()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | tcp_mmap.c | 241 if (rcvbuf && setsockopt(fd, SOL_SOCKET, in apply_rcvsnd_buf() 246 if (sndbuf && setsockopt(fd, SOL_SOCKET, in apply_rcvsnd_buf() 288 if (setsockopt(fdlisten, SOL_SOCKET, SO_RCVLOWAT, in do_accept() 417 setsockopt(fdlisten, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); in main() 422 setsockopt(fdlisten, IPPROTO_TCP, TCP_MAXSEG, in main() 454 setsockopt(fd, IPPROTO_TCP, TCP_MAXSEG, &mss, sizeof(mss)) == -1) { in main() 463 setsockopt(fd, SOL_SOCKET, SO_MAX_PACING_RATE, in main() 467 if (zflg && setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, in main()
|