Method lrs::socket::Socket::ipv4_set_hop_limit

Sets the hop limit of Ipv4 packets sent over this socket.

Syntax

impl Socket {
    fn ipv4_set_hop_limit(&self, val: u8) -> Result<(), Errno>
}

Arguments

NameDescription
val

The hop limit of Ipv4 packets sent over this socket.

Remarks

This option is only available for Ipv4 sockets.

See also