Function rustix::net::sockopt::set_ip_ttl
source · pub fn set_ip_ttl<Fd: AsFd>(fd: Fd, ttl: u32) -> Result<()>
Available on crate feature
net
only.Expand description
setsockopt(fd, IPPROTO_IP, IP_TTL, ttl)
References
- POSIX
setsockopt
- [POSIX
netinet/in.h
] - Linux
setsockopt
- Linux
ip
- Winsock2
setsockopt
- Winsock2
IPPROTO_IP
options