Method lrs::socket::Socket::set_dont_route

Sets whether this socket only sends packets to directly connected hosts.

Syntax

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

Arguments

NameDescription
val

Whether this socket only sends packets to directly connected hosts.

Remarks

If this option is set, then the socket will not send packets via gateways. This option can also be set on a per-message basis with the DontRoute flag.

See also