Message-ID: <4FDF9C6A.40201@...1227...> Date: Mon, 18 Jun 2012 23:23:54 +0200 From: Arne Schwabe MIME-Version: 1.0 References: <1336851105-24172-1-git-send-email-alon.barlev@...277...> <4FDF71C5.7090103@...1227...> In-Reply-To: Subject: Re: [Openvpn-devel] [V2.4 0/4] tun cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit To: Alon Bar-Lev Cc: openvpn-devel@lists.sourceforge.net Am 18.06.12 20:42, schrieb Alon Bar-Lev: > On Mon, Jun 18, 2012 at 9:21 PM, Arne Schwabe wrote: >> 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. > Thanks! > But as time goes by it becomes harder to rebase... and the 2.4 branch > is not created... so I don't know what is the future of this patchset. > Although I invested a lot of time in it and it has huge potential of > eliminating duplicate code from the code base. I think this is simple > enough to be in 2.3, but we had this discussion already. > >> 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 > From the Android discussion I thought that the best will be to write a > plugin "platform", delegate the ip configuration to the openvpn plugin > interface. > > Then you can implement whatever logic you need, if I understand > correctly, delegate ip management to the UI. > Yes. I wanted to outline what I want to able to do so the tun framework can support what I am trying to do. Arne