Expand description
linux_raw syscalls supporting rustix::net::sockopt
.
Β§Safety
See the rustix::backend
module documentation for details.
Functions§
- Like
duration_from_linux
but uses Linuxβs old 32-bit__kernel_old_timeval
. - Convert a
__linux_sock_timeval
to a RustOption<Duration>
. - Like
duration_to_linux
but uses Linuxβs old 32-bit__kernel_old_timeval
. - Convert a Rust
Option<Duration>
to a__kernel_sock_timeval
. - duration_to_secs πConvert to seconds, rounding up if necessary.
- from_bool π
- get_ip_freebind π
- get_ip_multicast_ttl π
- get_ip_original_dst π
- get_ip_recvtos π
- get_ip_tos π
- get_ip_ttl π
- get_ipv6_freebind π
- get_ipv6_recvtclass π
- get_ipv6_tclass π
- get_ipv6_v6only π
- get_socket_broadcast π
- get_socket_cookie π
- get_socket_domain π
- get_socket_error π
- get_socket_keepalive π
- get_socket_linger π
- get_socket_oobinline π
- get_socket_passcred π
- get_socket_peercred π
- get_socket_protocol π
- get_socket_reuseaddr π
- get_socket_reuseport π
- get_socket_timeout π
- Same as
get_socket_timeout
but uses__kernel_old_timeval
instead of__kernel_sock_timeval
and_OLD
constants instead of_NEW
. - get_socket_type π
- get_tcp_congestion π
- get_tcp_cork π
- get_tcp_keepcnt π
- get_tcp_keepidle π
- get_tcp_keepintvl π
- get_tcp_nodelay π
- get_tcp_quickack π
- get_tcp_user_timeout π
- get_xdp_mmap_offsets π
- get_xdp_options π
- get_xdp_statistics π
- getsockopt π
- getsockopt_raw π
- set_ip_freebind π
- set_ip_multicast_ttl π
- set_ip_recvtos π
- set_ip_tos π
- set_ip_ttl π
- set_ipv6_freebind π
- set_ipv6_recvtclass π
- set_ipv6_tclass π
- set_ipv6_v6only π
- set_socket_broadcast π
- set_socket_keepalive π
- set_socket_linger π
- set_socket_oobinline π
- set_socket_passcred π
- set_socket_reuseaddr π
- set_socket_reuseport π
- set_socket_timeout π
- Same as
set_socket_timeout
but uses__kernel_old_timeval
instead of__kernel_sock_timeval
and_OLD
constants instead of_NEW
. - set_tcp_congestion π
- set_tcp_cork π
- set_tcp_keepcnt π
- set_tcp_keepidle π
- set_tcp_keepintvl π
- set_tcp_nodelay π
- set_tcp_quickack π
- set_tcp_user_timeout π
- set_xdp_rx_ring_size π
- set_xdp_tx_ring_size π
- set_xdp_umem_reg π
- setsockopt π
- setsockopt_raw π
- to_bool π
- to_imr_addr π
- to_imr_source π
- to_ip_mreq π
- to_ip_mreqn π
- to_ipv6mr π
- to_ipv6mr_interface π
- to_ipv6mr_multiaddr π