[haiku-commits] Re: haiku: hrev51067 - in src: add-ons/network_settings/openvpn preferences/network

  • From: kallisti5 <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 10 Apr 2017 13:48:39 -0500

On 2017-04-09 05:08, Axel Dörfler wrote:

Am 06/04/2017 um 17:25 schrieb kallisti5:
I would assume that there is no other way to implement a VPN than to
have a BNetworkDevice. Or I surely hope so, at least...
Alex, what are you up to? :-)
Any kind of VPN connection will likely be centered around a definition
of what the vpn connection should look like. Traditionally the network
devices created for a VPN connection are created when connecting, then
tore down when disconnecting.

aka... the network device won't exist until the vpn tunnel is constructed,
so how can BNetworkInterfaceItem exist before the interface exists?

Dude, that makes sense :-)

Ha, You missed my second email contradicting myself. :-D

Should virtual networks be defined by some kind of 'profile' and
interfaces created and constructed when connecting (like linux)... or
should the interfaces be constructed when created by the user
(/dev/net/vpn/myconnection) and have all the knowledge they need to
connect when enabled?

The later seems more elegant to me. You guys sold me on the idea.

 -- Alex

Other related posts: