HAL and PPP interfaces

Joe Shaw joeshaw at novell.com
Wed Dec 8 11:29:51 PST 2004

On Wed, 2004-12-08 at 22:22 +0300, Andrei Yurkevich wrote:
> Ok, you almost convinced me, but that would be not the PDA but a device 
> in a PC - either a serial port or a bluetooth/usb/whatever device. See, 
> I need to know that there is a PPP connection available before I am able 
> to talk to a PDA, and the most logical way of knowing about a new PPP 
> interface would be querying HAL.

Ah, ok, this makes sense to me.

> So what about adding a "net.ppp" namespace and merging properties like
> these to devices capable of running a ppp link:
> net.ppp.link (bool) /* TRUE if there's a PPP link available
>                         over this device */

I would probably make the net.ppp namespace pretty transient and that
way you wouldn't need the net.ppp.link property.  Either a device has
the net.ppp capability (and thus has a link, etc.) or it doesn't.

> net.ppp.interface (string)  /* name of the ppp interface,
>                                 e.g. ppp0; this might as well
>                                 be just "net.interface" */
> Perhaps, there could be some other useful properties like 
> net.ppp.link_name (string) or net.ppp.protocol.{ip/ipx/whatever} (bool), 
> but I'm not sure if those can be acquired from outside of pppd.

Yep, these seem good.  I hope they're available outside pppd; it'd be
great if they were in sysfs.


hal mailing list
hal at lists.freedesktop.org

More information about the Hal mailing list