Re: Few questions



On Thu, 2008-04-03 at 11:07 +0400, Vitja Makarov wrote:
> Hi!
> 
> I have few questions about.
> 
> 1) What is the right way to add bluetooth-serial device support,
> should that be a separate setting just like serial one, and contain
> gsm/cdma setting inside?

Not 100% sure here, but there are two types to keep in mind here: PAN
and DUN.  PAN looks like a normal ethernet device, while DUN looks like
a serial device.

I don't have a good answer at the moment for handling the PAN vs. DUN
issue from a class perspective, since PAN would be more like
NMDevice8023Ethernet, while DUN is more like NMSerialDevice.  We may
need to abstract a lot of the serial code from the GSM, CDMA, and serial
devices so that a Bluetooth device could use it for DUN connections too.
In the end, all NM cares about are connections and settings, so you
could certainly implement a Bluetooth device that handled both PAN and
DUN with a lot of copy & paste from NMSerialDevice, NMCdmaDevice, and
NMGsmDevice.  But that's not maintainable.  Tambet would probably have
more ideas here.

> 2) Are you planning to move PPTP support inside NM or it still will be
> "vpn" one?

What I'd like to do here is abstract the PPP manager enough that the
same code could be linked into both NM and the PPTP plugin.  Probably
best done as a shared library.  Much of that is just autotools foo, some
of it might need to be actual code refactoring.

> 3) If you are running PPTP you may run in a routing problem, you have
> default one route via DHCP, that is your path to PPTP-server, but
> PPTP-server gives you knew one route. What to do in this case? You may
> wish to specify some networks that you want to have route to using old
> gw.

There are facilities to specify routes that will go over the VPN, but in
general where automatically-provided (VPN or DHCP) routes conflict with
user-defined routes, the user-defined routes should "win".

Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]