Sets whether this socket only sends packets to directly connected hosts.
impl Socket {
fn set_dont_route(&self, val: bool) -> Result<(), Errno>
}| Name | Description |
|---|---|
| val | Whether this socket only sends packets to directly connected hosts. |
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.
socket(7) and SO_DONTROUTE therein