rustix::net::sockopt

Function set_ip_ttl

Source
pub fn set_ip_ttl<Fd: AsFd>(fd: Fd, value: u32) -> Result<()>
Available on crate feature net only.
Expand description

setsockopt(fd, IPPROTO_IP, IP_TTL, value)

See the module-level documentation for more.