Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Use with /dev/net/tun #3

Open
Yamakaky opened this issue Dec 12, 2016 · 1 comment
Open

Use with /dev/net/tun #3

Yamakaky opened this issue Dec 12, 2016 · 1 comment

Comments

@Yamakaky
Copy link

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?

@alexcrichton
Copy link
Contributor

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants