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