Method lrs::socket::Socket::is_dont_route

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

Syntax

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

Return value

Returns 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.

See also