Re: Dbus signals and knowing the activated connection

2012-10-22 Thread Dan Williams
On Fri, 2012-10-19 at 14:39 +0200, Pietro Battiston wrote: > Hello, > > I'd like to some apparently simple thing with nm dbus signals: > > 1) get warned that a connection has been activated > 2) do something based on _which_ connection it is. > > Unfortunately all I was able to do so far is: >

Re: is a connection bind to a device?

2012-10-22 Thread Dan Williams
On Tue, 2012-10-23 at 09:39 +0800, yilang Long wrote: > Hi,everyone. > When I have two 802-3-ethernet devices, is the connection > object(settings.connection) bind to one of the devices?I didn't find > any property for NMDevice to get his connections ,also for > settings.connection, no property in

a issue on networkmanager

2012-10-22 Thread 孙建伟
hi: Recently I meet an odd problem about my LTE-Datacard. During the time I analysed the problem, I discovered some relation between NetworkManager and my device's problem. So I send the mail to check whether the guess is right. My LTE-DataCard is mult-port device which has both modem po

Dbus signals and knowing the activated connection

2012-10-22 Thread Pietro Battiston
Hello, I'd like to some apparently simple thing with nm dbus signals: 1) get warned that a connection has been activated 2) do something based on _which_ connection it is. Unfortunately all I was able to do so far is: 1) get warned that a connection has been activated (by listening at the dbus

Re: [PATCH v2] Build against NM 0.8.1 (say RHEL 6)

2012-10-22 Thread Dan Williams
On Tue, 2012-10-16 at 17:32 -0300, Murilo Opsfelder Araujo wrote: > Signed-off-by: Murilo Opsfelder Araujo Pushed, thanks! Dan > --- > auth-dialog/main.c | 44 > + > configure.ac| 24 +++--- > src

is a connection bind to a device?

2012-10-22 Thread yilang Long
Hi,everyone. When I have two 802-3-ethernet devices, is the connection object(settings.connection) bind to one of the devices?I didn't find any property for NMDevice to get his connections ,also for settings.connection, no property indicates his device in the dbus specification. so then can i switc

Re: __attribute__ ((cleanup) patch

2012-10-22 Thread Pavel Simerda
> From: "Colin Walters" > On Fri, 2012-10-19 at 12:05 -0400, Pavel Simerda wrote: > > > I, personally, was considering using some faster compiler for > > development. > > Pavel Tišnovský wrote an article about tcc and it might save me a > > lot of > > time waiting for compilation. > > I doubt it

Re: __attribute__ ((cleanup) patch

2012-10-22 Thread Colin Walters
On Fri, 2012-10-19 at 12:05 -0400, Pavel Simerda wrote: > I, personally, was considering using some faster compiler for development. > Pavel Tišnovský wrote an article about tcc and it might save me a lot of > time waiting for compilation. I doubt it, though it does depend on what kind of build y

[PATCH] Fix high cpu usage in network-manager-openvpn

2012-10-22 Thread Bao Haojun
When a socket is closed, poll(2) will always return readable immediately, read(2) will return 0 (EOF), thus we need to remove it from the watched channels, or else the cpu get spinning to 100%. Signed-off-by: Bao Haojun --- src/nm-openvpn-service.c | 10 +- 1 file changed, 9 insertions

Re: [MM PATCH 2/2] novatel-lte: retry $NWQMISTATUS upon an unknown error during connecting

2012-10-22 Thread Aleksander Morgado
On 10/19/2012 08:44 AM, Ben Chan wrote: > The $NWQMISTATUS command sometimes replies an ERROR shortly after > calling the $NWQMICONNECT command, but then replies the proper QMI > status if we retry it. This behavior is observed on an E362 modem with > 4.08 firmware. Pushed, thanks. > > (ttyU

Re: [MM PATCH 1/2] novatel-lte: handle $NWQMISTATUS responses for firmware 4.08

2012-10-22 Thread Aleksander Morgado
On 10/19/2012 08:44 AM, Ben Chan wrote: > In firmware 4.08, the $NWQMISTATUS command returns different values for > QMI state to indicate the current connection state. This patch modifies > the code to handle $NWQMISTATUS responses in firmware 1.41 and 4.08. Pushed, thanks. > --- > plugins/novat