Am 12.05.12 21:31, schrieb Alon Bar-Lev:
> Platform independent interface for tun provider.
>
> Split the long tun.c into platform specific files using
> tun_engine interface.
>
> Functionality is the same.
>
> Maintenance will be much easier! new options, like stacking
> several interfaces and delegate partial control to plugin.
>
I have looked at your patchset. It going in the right direction I think.

For "my platform" I would like to have/implement a persisent tun which
works as follows:

- proivde tun configuration including routes and ifconfig
- open tun with the information
- keep tun open
- on reconect: compare new configuration with old configuration.
  - if nothing has changed keep the old tun
  - otherwise first open the new tun then close the old tun

If we redesign the tun interface I would like to support this as well.
Having this interface would also make implementing platform specific
redirect-gateway and so easier. Also the redirect variant used by
Android (binding a socket to an interface) could be implemented as a
alternative.

Arne


Reply via email to