Expand description
linux_raw syscalls supporting rustix::net::sockopt.
Β§Safety
See the rustix::backend module documentation for details.
FunctionsΒ§
- duration_
from_ πlinux_ old_ timeval  - Like 
duration_from_linux_sock_timevalbut uses Linuxβs old 32-bit__kernel_old_timeval. - duration_
from_ πlinux_ sock_ timeval  - Convert a 
__linux_sock_timevalto a RustOption<Duration>. - duration_
to_ πlinux_ old_ timeval  - Like 
duration_to_linux_sock_timevalbut uses Linuxβs old 32-bit__kernel_old_timeval. - duration_
to_ πlinux_ sock_ timeval  - Convert a Rust 
Option<Duration>to a__kernel_sock_timeval. - duration_
to_ πsecs  - Convert to seconds, rounding up if necessary.
 - from_
bool π - from_
in_ πaddr  - get_
txtime π - getsockopt π
 - getsockopt_
raw π - ip_
freebind π - ip_mtu π
 - ip_
mtu_ πdiscover  - ip_
multicast_ πif  - ip_
multicast_ πloop  - ip_
multicast_ πttl  - ip_
original_ πdst  - ip_
recvtos π - ip_tos π
 - ip_ttl π
 - ipv6_
freebind π - ipv6_
mtu π - ipv6_
mtu_ πdiscover  - ipv6_
multicast_ πhops  - ipv6_
multicast_ πif  - ipv6_
multicast_ πloop  - ipv6_
original_ πdst  - ipv6_
recvtclass π - ipv6_
tclass π - ipv6_
unicast_ πhops  - ipv6_
v6only π - set_
ip_ πadd_ membership  - set_
ip_ πadd_ membership_ with_ ifindex  - set_
ip_ πadd_ source_ membership  - set_
ip_ πdrop_ membership  - set_
ip_ πdrop_ membership_ with_ ifindex  - set_
ip_ πdrop_ source_ membership  - set_
ip_ πfreebind  - set_
ip_ πmtu_ discover  - set_
ip_ πmulticast_ if  - set_
ip_ πmulticast_ if_ with_ ifindex  - set_
ip_ πmulticast_ loop  - set_
ip_ πmulticast_ ttl  - set_
ip_ πrecvtos  - set_
ip_ πtos  - set_
ip_ πttl  - set_
ipv6_ πadd_ membership  - set_
ipv6_ πdrop_ membership  - set_
ipv6_ πfreebind  - set_
ipv6_ πmtu_ discover  - set_
ipv6_ πmulticast_ hops  - set_
ipv6_ πmulticast_ if  - set_
ipv6_ πmulticast_ loop  - set_
ipv6_ πrecvtclass  - set_
ipv6_ πtclass  - set_
ipv6_ πunicast_ hops  - set_
ipv6_ πv6only  - set_
socket_ πbroadcast  - set_
socket_ πincoming_ cpu  - set_
socket_ πkeepalive  - set_
socket_ πlinger  - set_
socket_ πoobinline  - set_
socket_ πpasscred  - set_
socket_ πrecv_ buffer_ size  - set_
socket_ πrecv_ buffer_ size_ force  - set_
socket_ πreuseaddr  - set_
socket_ πreuseport  - set_
socket_ πsend_ buffer_ size  - set_
socket_ πsend_ buffer_ size_ force  - set_
socket_ πtimeout  - set_
socket_ πtimeout_ old  - Same as 
set_socket_timeoutbut uses__kernel_old_timevalinstead of__kernel_sock_timevaland_OLDconstants 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_ πthin_ linear_ timeouts  - set_
tcp_ πuser_ timeout  - set_
txtime π - set_
xdp_ πrx_ ring_ size  - set_
xdp_ πtx_ ring_ size  - set_
xdp_ πumem_ completion_ ring_ size  - set_
xdp_ πumem_ fill_ ring_ size  - set_
xdp_ πumem_ reg  - setsockopt π
 - setsockopt_
raw π - socket_
acceptconn π - socket_
broadcast π - socket_
cookie π - socket_
domain π - socket_
error π - socket_
incoming_ πcpu  - socket_
keepalive π - socket_
linger π - socket_
oobinline π - socket_
passcred π - socket_
peercred π - socket_
protocol π - socket_
recv_ πbuffer_ size  - socket_
reuseaddr π - socket_
reuseport π - socket_
send_ πbuffer_ size  - socket_
timeout π - socket_
timeout_ πold  - Same as 
get_socket_timeoutbut uses__kernel_old_timevalinstead of__kernel_sock_timevaland_OLDconstants instead of_NEW. - socket_
type π - tcp_
congestion π - tcp_
cork π - tcp_
keepcnt π - tcp_
keepidle π - tcp_
keepintvl π - tcp_
nodelay π - tcp_
quickack π - tcp_
thin_ πlinear_ timeouts  - tcp_
user_ πtimeout  - to_bool π
 - to_
imr_ πaddr  - to_
imr_ πsource  - to_
ip_ πmreq  - to_
ip_ πmreqn  - to_
ipv6mr π - to_
ipv6mr_ πinterface  - to_
ipv6mr_ πmultiaddr  - xdp_
mmap_ πoffsets  - xdp_
options π - xdp_
statistics π