The [`Tun`](https://github.com/iCepa/tun2tor/blob/master/src/tun/linux.rs) device needs methods to get and set the IP address (which should probably share code with the XNU version).
The
Tundevice needs methods to get and set the IP address (which should probably share code with the XNU version).