Home
last modified time | relevance | path

Searched refs:getsockopt (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/external/rust/crates/nix/test/sys/
Dtest_sockopt.rs2 use nix::sys::socket::{socket, sockopt, getsockopt, setsockopt, AddressFamily, SockType, SockFlag, …
15 let mark = getsockopt(s, sockopt::Mark).unwrap(); in is_so_mark_functional()
25 let actual = getsockopt(fd, sockopt::SndBuf).unwrap(); in test_so_buf()
28 let actual = getsockopt(fd, sockopt::RcvBuf).unwrap(); in test_so_buf()
46 let val = getsockopt(fd, sockopt::TcpCongestion).unwrap(); in test_tcp_congestion()
52 getsockopt(fd, sockopt::TcpCongestion).unwrap(), in test_tcp_congestion()
64 let val = getsockopt(fd, sockopt::BindToDevice).unwrap(); in test_bindtodevice()
68 getsockopt(fd, sockopt::BindToDevice).unwrap(), in test_bindtodevice()
77 assert_eq!(getsockopt(fd, sockopt::KeepAlive).unwrap(), true); in test_so_tcp_keepalive()
84 let x = getsockopt(fd, sockopt::TcpKeepIdle).unwrap(); in test_so_tcp_keepalive()
[all …]
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_sockopt.c165 error = getsockopt(-1, IPPROTO_SCTP, 0, 0, 0); in main()
178 error = getsockopt(fd, IPPROTO_SCTP, 0, 0, 0); in main()
194 error = getsockopt(sk, -1, SCTP_RTOINFO, 0, 0); in main()
204 error = getsockopt(sk, IPPROTO_SCTP, SCTP_RTOINFO, in main()
213 error = getsockopt(sk, IPPROTO_SCTP, SCTP_AUTOCLOSE, &grtinfo, &len); in main()
289 error = getsockopt(sk2, SOL_SOCKET, SO_LINGER, &glinger, &len); in main()
305 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main()
314 error = getsockopt(sk2, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main()
333 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main()
353 error = getsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_get, &len); in main()
[all …]
Dtest_1_to_1_rtoinfo.c74 ret = getsockopt(sd, IPPROTO_SCTP, SCTP_RTOINFO, &grtoinfo, &len); in main()
96 ret = getsockopt(sd, IPPROTO_SCTP, SCTP_RTOINFO, &grtoinfo, &len); in main()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dsockopt_multi.c75 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
98 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
122 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
148 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
167 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
187 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
224 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_setsockopt_test()
251 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_setsockopt_test()
278 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_setsockopt_test()
Dsockopt_sk.c34 err = getsockopt(fd, SOL_IP, IP_TOS, &buf, &optlen); in getsetsockopt()
66 err = getsockopt(fd, SOL_CUSTOM, 0, &buf, &optlen); in getsetsockopt()
92 err = getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buf, &optlen); in getsetsockopt()
115 err = getsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, &optlen); in getsetsockopt()
/external/ltp/testcases/network/multicast/mc_opts/
Dmc_verify_opts.c63 if (getsockopt in main()
82 if (getsockopt in main()
99 if (getsockopt in main()
110 if (getsockopt in main()
131 if (getsockopt in main()
Dmc_verify_opts_error.c48 if (getsockopt in main()
53 if (getsockopt in main()
69 if (getsockopt in main()
/external/strace/tests-m32/
Dnet-tpacket_stats-success.test5 run_strace -e trace=getsockopt -e inject=getsockopt:retval=42 ../net-tpacket_stats-success > "$EXP"
Dnet-icmp_filter.c39 getsockopt(-1, SOL_RAW, ICMP_FILTER, 0, 0); in main()
51 getsockopt(-1, SOL_RAW, ICMP_FILTER, f, plen); in main()
Dgen_tests.in237 net-icmp_filter -e trace=getsockopt,setsockopt
241 net-tpacket_stats -e trace=getsockopt
427 so_linger -e trace=getsockopt,setsockopt
428 so_peercred -e trace=getsockopt
429 so_peercred-Xabbrev -e trace=getsockopt -Xabbrev
430 so_peercred-Xraw -e trace=getsockopt -Xraw -a39
431 so_peercred-Xverbose -e trace=getsockopt -Xverbose
432 sock_filter-v -v -e trace=getsockopt,setsockopt
433 sock_filter-v-Xabbrev -v -e trace=getsockopt,setsockopt -X abbrev
434 sock_filter-v-Xraw -a 37 -v -e trace=getsockopt,setsockopt -X raw
[all …]
/external/strace/tests/
Dnet-tpacket_stats-success.test5 run_strace -e trace=getsockopt -e inject=getsockopt:retval=42 ../net-tpacket_stats-success > "$EXP"
Dnet-icmp_filter.c39 getsockopt(-1, SOL_RAW, ICMP_FILTER, 0, 0); in main()
51 getsockopt(-1, SOL_RAW, ICMP_FILTER, f, plen); in main()
/external/strace/tests-mx32/
Dnet-tpacket_stats-success.test5 run_strace -e trace=getsockopt -e inject=getsockopt:retval=42 ../net-tpacket_stats-success > "$EXP"
Dnet-icmp_filter.c39 getsockopt(-1, SOL_RAW, ICMP_FILTER, 0, 0); in main()
51 getsockopt(-1, SOL_RAW, ICMP_FILTER, f, plen); in main()
Dgen_tests.in237 net-icmp_filter -e trace=getsockopt,setsockopt
241 net-tpacket_stats -e trace=getsockopt
427 so_linger -e trace=getsockopt,setsockopt
428 so_peercred -e trace=getsockopt
429 so_peercred-Xabbrev -e trace=getsockopt -Xabbrev
430 so_peercred-Xraw -e trace=getsockopt -Xraw -a39
431 so_peercred-Xverbose -e trace=getsockopt -Xverbose
432 sock_filter-v -v -e trace=getsockopt,setsockopt
433 sock_filter-v-Xabbrev -v -e trace=getsockopt,setsockopt -X abbrev
434 sock_filter-v-Xraw -a 37 -v -e trace=getsockopt,setsockopt -X raw
[all …]
/external/rust/crates/mio/src/sys/unix/
Dtcp.rs79 syscall!(getsockopt( in get_reuseaddr()
109 syscall!(getsockopt( in get_reuseport()
157 syscall!(getsockopt( in get_linger()
190 syscall!(getsockopt( in get_recv_buffer_size()
217 syscall!(getsockopt( in get_send_buffer_size()
244 syscall!(getsockopt( in get_keepalive()
304 syscall!(getsockopt( in get_keepalive_time()
361 syscall!(getsockopt( in get_keepalive_interval()
414 syscall!(getsockopt( in get_keepalive_retries()
/external/llvm-project/clang/test/Analysis/
Dpr_4164.c17 int getsockopt(int, int, int, void * restrict, socklen_t * restrict);
23 if (getsockopt(s, 0xffff, 0x1001, (char *)&size, &size_len) < 0) in test1()
/external/clang/test/Analysis/
Dpr_4164.c17 int getsockopt(int, int, int, void * restrict, socklen_t * restrict);
23 if (getsockopt(s, 0xffff, 0x1001, (char *)&size, &size_len) < 0) in test1()
/external/iptables/extensions/
Dlibxt_set.h29 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req_version, &size); in get_version()
49 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); in get_set_byid()
79 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); in get_set_byname_only()
110 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); in get_set_byname()
/external/rust/crates/tokio/src/net/unix/
Ducred.rs55 use libc::{c_void, getsockopt, socklen_t, SOL_SOCKET, SO_PEERCRED};
80 let ret = getsockopt( in get_peer_cred()
140 use libc::{c_void, getpeereid, getsockopt, pid_t, LOCAL_PEEREPID, SOL_LOCAL};
155 if getsockopt( in get_peer_cred()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dsocket_utils_common_posix.cc97 if (0 != getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &newval, &intlen)) { in grpc_set_socket_no_sigpipe_if_possible()
178 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr()
200 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &newval, &intlen)) { in grpc_set_socket_reuse_port()
241 if (0 != getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &newval, &intlen)) { in grpc_set_socket_low_latency()
346 if (0 != getsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &newval, &len)) { in grpc_set_socket_tcp_user_timeout()
369 if (0 != getsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &newval, &len)) { in grpc_set_socket_tcp_user_timeout()
/external/rust/crates/mio/src/sys/windows/
Dtcp.rs17 …self, closesocket, linger, setsockopt, getsockopt, getsockname, PF_INET, PF_INET6, SOCKET, SOCKET_…
101 match unsafe { getsockopt( in get_reuseaddr()
167 match unsafe { getsockopt( in get_linger()
203 match unsafe { getsockopt( in get_recv_buffer_size()
232 match unsafe { getsockopt( in get_send_buffer_size()
262 match unsafe { getsockopt( in get_keepalive()
Dudp.rs10 use winapi::um::winsock2::{bind as win_bind, closesocket, getsockopt, SOCKET_ERROR, SOCK_DGRAM};
38 getsockopt( in only_v6()
/external/selinux/libselinux/src/
Dgetpeercon.c26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon_raw()
36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon_raw()
/external/grpc-grpc/src/core/lib/iomgr/
Dsocket_utils_common_posix.cc78 if (0 != getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &newval, &intlen)) { in grpc_set_socket_no_sigpipe_if_possible()
152 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr()
174 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &newval, &intlen)) { in grpc_set_socket_reuse_port()
217 if (0 != getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &newval, &intlen)) { in grpc_set_socket_low_latency()
301 if (0 != getsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &newval, &len)) { in grpc_set_socket_tcp_user_timeout()

12345678910>>...13