/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | getsockopt_network.c | 36 int content = getsockopt(sockfd, SOL_SOCKET, SO_DEBUG, &optval, (socklen_t *)(&optlen)); in getsockopt_0100() 50 int content = getsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &optval, (socklen_t *)(&optlen)); in getsockopt_0200() 64 int content = getsockopt(sockfd, SOL_SOCKET, SO_TYPE, &optval, (socklen_t *)(&optlen)); in getsockopt_0300() 78 int content = getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, (socklen_t *)(&optlen)); in getsockopt_0400() 92 int content = getsockopt(sockfd, SOL_SOCKET, SO_DONTROUTE, &optval, (socklen_t *)(&optlen)); in getsockopt_0500() 106 int content = getsockopt(sockfd, SOL_SOCKET, SO_BROADCAST, &optval, (socklen_t *)(&optlen)); in getsockopt_0600() 120 int content = getsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, &optval, (socklen_t *)(&optlen)); in getsockopt_0700() 134 int content = getsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, &optval, (socklen_t *)(&optlen)); in getsockopt_0800() 148 int content = getsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, &optval, (socklen_t *)(&optlen)); in getsockopt_0900() 162 int content = getsockopt(sockfd, SOL_SOCKET, SO_OOBINLINE, &optval, (socklen_t *)(&optlen)); in getsockopt_1000() [all …]
|
/third_party/rust/crates/nix/test/sys/ |
D | test_sockopt.rs | 4 getsockopt, setsockopt, socket, sockopt, AddressFamily, SockFlag, 25 let xucred = getsockopt(fd1, sockopt::LocalPeerCred).unwrap(); in test_local_peercred_seqpacket() 51 let xucred = getsockopt(fd1, sockopt::LocalPeerCred).unwrap(); in test_local_peercred_stream() 72 let mark = getsockopt(s, sockopt::Mark).unwrap(); in is_so_mark_functional() 87 let actual = getsockopt(fd, sockopt::SndBuf).unwrap(); in test_so_buf() 90 let actual = getsockopt(fd, sockopt::RcvBuf).unwrap(); in test_so_buf() 113 let initial = getsockopt(rsock, sockopt::TcpMaxSeg).unwrap(); in test_so_tcp_maxseg() 138 let actual = getsockopt(ssock, sockopt::TcpMaxSeg).unwrap(); in test_so_tcp_maxseg() 164 assert_eq!(Ok(SockType::Stream), getsockopt(sockfd, sockopt::SockType)); in test_so_type() 178 assert_eq!(Err(Errno::EINVAL), getsockopt(sockfd, sockopt::SockType)); in test_so_type_unknown() [all …]
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 169 error = getsockopt(-1, IPPROTO_SCTP, 0, 0, 0); in main() 182 error = getsockopt(fd, IPPROTO_SCTP, 0, 0, 0); in main() 198 error = getsockopt(sk, -1, SCTP_RTOINFO, 0, 0); in main() 208 error = getsockopt(sk, IPPROTO_SCTP, SCTP_RTOINFO, in main() 217 error = getsockopt(sk, IPPROTO_SCTP, SCTP_AUTOCLOSE, &grtinfo, &len); in main() 293 error = getsockopt(sk2, SOL_SOCKET, SO_LINGER, &glinger, &len); in main() 309 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main() 318 error = getsockopt(sk2, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main() 337 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main() 357 error = getsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_get, &len); in main() [all …]
|
D | test_1_to_1_rtoinfo.c | 78 ret = getsockopt(sd, IPPROTO_SCTP, SCTP_RTOINFO, &grtoinfo, &len); in main() 100 ret = getsockopt(sd, IPPROTO_SCTP, SCTP_RTOINFO, &grtoinfo, &len); in main()
|
D | test_sockopt.c | 173 error = getsockopt(udp_svr_sk, SOL_SCTP, SCTP_STATUS, &status, in main() 250 error = getsockopt(udp_clt_sk, SOL_SCTP, SCTP_STATUS, &status, in main() 262 error = getsockopt(udp_svr_sk, SOL_SCTP, SCTP_STATUS, &status, in main() 430 error = getsockopt(udp_clt_sk, IPPROTO_SCTP, SCTP_STATUS, in main() 1071 error = getsockopt(udp_clt_sk, SOL_SCTP, SCTP_GET_PEER_ADDR_INFO, in main() 1085 error = getsockopt(udp_clt_sk, SOL_SCTP, SCTP_GET_PEER_ADDR_INFO, in main() 1100 error = getsockopt(udp_clt_sk, SOL_SCTP, SCTP_GET_PEER_ADDR_INFO, in main()
|
D | test_assoc_abort.c | 209 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() 223 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main()
|
D | test_assoc_shutdown.c | 210 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() 224 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main()
|
/third_party/musl/src/network/ |
D | getsockopt.c | 6 int getsockopt(int fd, int level, int optname, void *restrict optval, socklen_t *restrict optlen) in getsockopt() function 11 int r = __socketcall(getsockopt, fd, level, optname, optval, optlen, 0); in getsockopt() 22 r = __socketcall(getsockopt, fd, level, optname, in getsockopt() 35 r = __socketcall(getsockopt, fd, level, in getsockopt()
|
/third_party/ltp/testcases/network/multicast/mc_opts/ |
D | mc_verify_opts.c | 68 if (getsockopt in main() 87 if (getsockopt in main() 104 if (getsockopt in main() 115 if (getsockopt in main() 136 if (getsockopt in main()
|
D | mc_verify_opts_error.c | 53 if (getsockopt in main() 58 if (getsockopt in main() 74 if (getsockopt in main()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | syscalls.rs | 408 fn getsockopt<T: Copy>(fd: BorrowedFd<'_>, level: i32, optname: i32) -> io::Result<T> { in getsockopt() function 419 ret(c::getsockopt( in getsockopt() 467 getsockopt(fd, c::SOL_SOCKET as _, c::SO_TYPE) in get_socket_type() 492 getsockopt(fd, c::SOL_SOCKET as _, c::SO_BROADCAST).map(to_bool) in get_socket_broadcast() 519 let linger: c::linger = getsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER)?; in get_socket_linger() 537 getsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED).map(to_bool) in get_socket_passcred() 617 let timeout: c::timeval = getsockopt(fd, c::SOL_SOCKET, optname)?; in get_socket_timeout() 630 let timeout: u32 = getsockopt(fd, c::SOL_SOCKET, optname)?; in get_socket_timeout() 646 getsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL) in get_ip_ttl() 656 getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY).map(to_bool) in get_ipv6_v6only() [all …]
|
/third_party/openssl/crypto/bio/ |
D | bss_dgram.c | 208 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 217 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 491 getsockopt(b->num, IPPROTO_IP, IP_MTU, (void *)&sockopt_val, in dgram_ctrl() 506 getsockopt(b->num, IPPROTO_IPV6, IPV6_MTU, in dgram_ctrl() 610 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 621 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 661 if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, in dgram_ctrl() 672 if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, in dgram_ctrl() 855 ret = getsockopt(fd, IPPROTO_SCTP, SCTP_LOCAL_AUTH_CHUNKS, authchunks, in BIO_new_dgram_sctp() 897 ret = getsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, &event, &sockopt_len); in BIO_new_dgram_sctp() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/bio/ |
D | bss_dgram.c | 208 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 217 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 491 getsockopt(b->num, IPPROTO_IP, IP_MTU, (void *)&sockopt_val, in dgram_ctrl() 506 getsockopt(b->num, IPPROTO_IPV6, IPV6_MTU, in dgram_ctrl() 610 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 621 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 661 if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, in dgram_ctrl() 672 if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, in dgram_ctrl() 855 ret = getsockopt(fd, IPPROTO_SCTP, SCTP_LOCAL_AUTH_CHUNKS, authchunks, in BIO_new_dgram_sctp() 897 ret = getsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, &event, &sockopt_len); in BIO_new_dgram_sctp() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | syscalls.rs | 765 fn getsockopt<T: Copy>(fd: BorrowedFd<'_>, level: u32, optname: u32) -> io::Result<T> { in getsockopt() function 860 getsockopt(fd, c::SOL_SOCKET as _, c::SO_TYPE) in get_socket_type() 885 getsockopt(fd, c::SOL_SOCKET as _, c::SO_BROADCAST).map(to_bool) in get_socket_broadcast() 912 let linger: c::linger = getsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER)?; in get_socket_linger() 928 getsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED).map(to_bool) in get_socket_passcred() 974 let time: __kernel_timespec = match getsockopt(fd, c::SOL_SOCKET, optname) { in get_socket_timeout() 990 let time: timeval = getsockopt(fd, c::SOL_SOCKET, optname)?; in get_socket_timeout_old() 1075 getsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL) in get_ip_ttl() 1085 getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY).map(to_bool) in get_ipv6_v6only() 1103 getsockopt(fd, c::IPPROTO_IP as _, c::IP_MULTICAST_LOOP).map(to_bool) in get_ip_multicast_loop() [all …]
|
/third_party/selinux/libselinux/src/ |
D | getpeercon.c | 26 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()
|
/third_party/ffmpeg/libavformat/ |
D | network.h | 57 #define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e) macro
|
/third_party/python/Lib/test/support/ |
D | socket_helper.py | 93 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) == 1: 99 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
|
/third_party/python/Lib/ |
D | asyncore.py | 303 self.socket.getsockopt(socket.SOL_SOCKET, 430 err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 452 err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 612 def getsockopt(self, level, optname, buflen=None): member in file_wrapper
|
/third_party/rust/crates/nix/src/sys/socket/ |
D | sockopt.rs | 99 let res = libc::getsockopt( 1361 let a_cred = getsockopt(a, super::PeerCredentials).unwrap(); in can_get_peercred_on_unix_socket() 1362 let b_cred = getsockopt(b, super::PeerCredentials).unwrap(); in can_get_peercred_on_unix_socket() 1379 let a_type = getsockopt(a, super::SockType).unwrap(); in is_socket_type_unix() 1397 let s_type = getsockopt(s, super::SockType).unwrap(); in is_socket_type_dgram() 1415 let s_listening = getsockopt(s, super::AcceptConn).unwrap(); in can_get_listen_on_tcp_socket() 1418 let s_listening2 = getsockopt(s, super::AcceptConn).unwrap(); in can_get_listen_on_tcp_socket()
|
/third_party/ltp/utils/sctp/lib/ |
D | peeloff.c | 39 err = getsockopt(fd, SOL_SCTP, SCTP_SOCKOPT_PEELOFF, &peeloff, in sctp_peeloff()
|
D | opt_info.c | 57 return getsockopt(sd, IPPROTO_SCTP, opt, arg, size); in sctp_opt_info()
|
D | addrs.c | 53 err = getsockopt(sd, SOL_SCTP, optname_new, getaddrs, &len); in sctp_getaddrs()
|
/third_party/ltp/include/lapi/syscalls/ |
D | x86_64.in | 56 getsockopt 55 385 getsockopt 542
|
/third_party/python/Lib/asyncio/ |
D | trsock.py | 78 def getsockopt(self, *args, **kwargs): member in TransportSocket 79 return self._sock.getsockopt(*args, **kwargs)
|
/third_party/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt02.c | 56 if (getsockopt(accepted, SOL_SOCKET, in test_function()
|