Binds this socket to a device so that only packets from this device will be accepted.
impl Socket {
fn bind_to_device<D>(&self, device: D) -> Result<(), Errno>
where D: ToCStr,
}| Name | Description |
|---|---|
| device | The device to which the socket will be bound. |
socket(7) and SO_BINDTODEVICE therein