Re: Querying network state via D-Bus; unexpected result values
- From: Vratislav Podzimek <vpodzime redhat com>
- To: networkmanager-list gnome org
- Subject: Re: Querying network state via D-Bus; unexpected result values
- Date: Tue, 29 Nov 2011 09:26:03 +0100
On Mon, 2011-11-28 at 15:44 +0100, Jirka Klimes wrote:
> On Monday 28 of November 2011 02:14:07 Adam Tauno Williams wrote:
> > I'm attempting to interrogate the state of the network condition via
> > Network Manager's D-Bus service. I can reliably get a value, but the
> > value seems incorrect.
> >
> > According to
> > <http://projects.gnome.org/NetworkManager/developers/spec-07.html#type-NM_D
> > EVICE_STATE> I expect to see a value of 8 [NM_DEVICE_STATE_ACTIVATED] if
> > the device is online. But what I see from call is generally a 20 if the
> > interface [Device 0, eth0] is unplugged and a value of 100 if the
> > interface is online.
> >
>
> The link you use is for NM 0.7, but according to device states value you
> apparently use NM 0.9 that changed state codes.
Well, the results when querying google for "network manager dbus api"
are far from being ideal. I fell into that trap too some months ago.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]