tokio-uds icon indicating copy to clipboard operation
tokio-uds copied to clipboard

Use with /dev/net/tun

Open Yamakaky opened this issue 8 years ago • 1 comments

To add a new TUN/TAP device, you have to open /dev/net/tun, configure it with ioctl then read/select it like a normal fd. Would it be appropriate for use with UnixDatagram? If so, did you consider adding impl FromRawFd for UnixDatagram?

Yamakaky avatar Dec 12 '16 15:12 Yamakaky

It's plausible that a FromRawFd method could be added but are the relevant methods appropriate? I haven't worked with TUN/TAP much but do those basically look like unix sockets? (e.g. also in sockaddrs received)

alexcrichton avatar Dec 13 '16 18:12 alexcrichton