Re: Execute a command after connecting or disconnecting?

2010-02-19 Thread drago01
On Fri, Feb 19, 2010 at 3:43 PM, Bill C Riemers  wrote:
> Is there a way to automatically execute a command after opening or
> closing a connection?
>
> What I would like to do is figure out a way to run "service dnsmasq
> restart" when connecting or disconnecting from openvpn.   That way my
> dns will not continue to cache lookups across this action.
>
> Currently I do this manually.   Otherwise, if for example I try to open
> e-mail when not connected to work, a DNS entry to opendns will be cached
> by dnsmasq, even after I am connected via vpn.

You can place a script in /etc/NetworkManager/dispatcher.d
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] Use libnl and nl80211 to get bitrate information

2010-01-07 Thread drago01
On Thu, Jan 7, 2010 at 8:10 AM, Dan Williams  wrote:
> On Wed, 2009-12-30 at 18:45 +0100, drago01 wrote:
>> 2009/10/5 Valmantas Palikša :
>> > Latest version
>>
>> Dan any update on this?
>
> Have we resolved or at least satisfied any potential legal issues about
> trying to including BSD-derived code in a GPLv2+ project?
>
> If there's simply no other way to do the operations then it may well be
> OK, but given that (last I knew) the patch was more or less based on
> 'iw' (which is BSD licensed) I'm not exactly comfortable with applying
> the patch without a bit of legal advice.  Maybe we get Spot involved?

OK, we could also ask Johannes (AFAIK he has written the original iw
part), whether he could give his permissions to use the code in nm.
(if there are legal issues need to ask spot first).
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] Use libnl and nl80211 to get bitrate information

2009-12-30 Thread drago01
2009/10/5 Valmantas Palikša :
> Latest version

Dan any update on this?
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] Use libnl and nl80211 to get bitrate information

2009-09-24 Thread drago01
2009/9/24 Valmantas Palikša :
> This patch allows us to see 11n bitrates in nm-applet's connection
> properties.
>
> Comments/suggestions?

Doesn't this break bitrate reporting on wext only drivers?
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: unable to handle kernel NULL pointer dereference...

2009-05-17 Thread drago01
On Sat, May 16, 2009 at 11:12 AM, Gour  wrote:
> Hi!
>
> After managing to make NM playing nicely with my Option Icon 225
> usb-stick, I experienced few crashes yesterday and one of those are
> captured in this log snippet:
>
> -- BUG: unable to handle kernel NULL pointer dereference at 0020
>[...]
>
>
>
> Is it of any help to NM-devs?

A kernel oops is a kernel bug, nothing nm can do about.
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Release: 0.7.1

2009-04-16 Thread drago01
On Thu, Apr 16, 2009 at 6:12 PM, Dan Williams  wrote:

> If people have suggestions of small fixes they really want to see in
> 0.7.2 ("3G signal strength" is not appropriate, but "don't ask for wifi
> password so often" certianly is) we'd love to hear them.

A per connection "disconnect" option.
I want to be able to say "disconnect this wired connection" (without
having to unplug the cable, sucks when its a desktop box and the cable
is under your desk) or "disconnect from this wireless network" (ex:
having two wireless cards and want to disconnect one but not rfkill
both devices).


Not sure if this falls into "small fixes" but it would be nice to have ;)
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Can nm provide connection speed ?

2008-11-29 Thread drago01
On Sat, Nov 29, 2008 at 3:53 PM, thibaut bethune
<[EMAIL PROTECTED]> wrote:
> With Ubuntu, Synaptic deals with package installation.
> I've just noticed that Synaptic displays the current connexion speed while
> installing package.
> I had 230 kB∕s, then i closed my BitTorrent client and i got 580−680 kB∕s
> i don't know if it can help

it just displays the current download speed, which is not whats being
discussed here.
the question is "whats the max (avg) speed the active connection can provide"
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Powersaving Patch for NetworkManager

2008-11-26 Thread drago01
On Wed, Nov 26, 2008 at 1:59 PM, Alexander Sack <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 01:38:12PM +0100, Jan Kantert wrote:
>> Hi,
>>
>> according to powertop Network Manager wakes up my cpu about once every
>> two seconds. Thats does not sound much but on an idle desktop with 10
>> wake ups per seconds thats 5%. I wanted my laptop's cpu to stay longer
>> in sleepstates so I wrote a little patch (against trunk) to replace
>> g_timeout_add with g_timeout_add_seconds (where possible), which uses
>> more rough granularity. This helps to aggregate timeouts and will
>> statistically wake up the cpu less frequently.
>
> Sounds good. Curious, if you have collected data on how much of a
> powersaving win this patch brings?

The patch itself won't save much power, but when other apps wake up
less often too the cpu will spend more time idle and therefore save
power.
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: NetworkManager + WEP + static IP--no worky? (how to get 'Edit Connections' working?)

2008-07-13 Thread drago01
try adding the BSSID to the connection in the editor (you should find
it in the iwlist scan output)
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


[PATCH] fix supplicant state handling for AP out of range case

2008-06-22 Thread drago01
Currently NM will never mark a wireless connection as "down" when the
AP is out of range or shut down.
It starts a timeout of 15 sec to wait for the supplicant to re
authenticate. But if the supplicant is scanning it will keep
restarting the timeout (and keep the connection "up" even thought
there is no link).
The attached patch fixes this by increasing the timeout to 30 sec in
the "SCANNING" case.

--

Fix supplicant state handling for AP out of range case.

Signed-off-by: Adel Gadllah <[EMAIL PROTECTED]>

diff -upNr NetworkManager-0.7.0.orign/src/nm-device-wifi.c
NetworkManager-0.7.0/src/nm-device-wifi.c
--- NetworkManager-0.7.0.orign/src/nm-device-wifi.c 2008-06-10
18:06:36.0 +0200
+++ NetworkManager-0.7.0/src/nm-device-wifi.c   2008-06-20
17:32:54.0 +0200
@@ -1951,10 +1951,6 @@ link_timeout_cb (gpointer user_data)

g_assert (dev);

-   /* If currently scanning and disconnected still, check again later. */
-   if (priv->scanning)
-   return TRUE;
-
priv->link_timeout_id = 0;

req = nm_device_get_act_request (dev);
@@ -2130,6 +2126,12 @@ supplicant_iface_connection_state_cb_han
nm_info ("(%s): supplicant connection state change: %d -> %d",
 nm_device_get_iface (dev), old_state, new_state);

+   if (new_state == NM_SUPPLICANT_INTERFACE_CON_STATE_SCANNING) {
+   self->priv->scanning = TRUE;
+   } else {
+   self->priv->scanning = FALSE;
+   }
+
if (new_state == NM_SUPPLICANT_INTERFACE_CON_STATE_COMPLETED) {
remove_supplicant_interface_connection_error_handler (self);
remove_supplicant_timeouts (self);
@@ -2149,18 +2151,15 @@ supplicant_iface_connection_state_cb_han
}
} else if (new_state == NM_SUPPLICANT_INTERFACE_CON_STATE_DISCONNECTED) 
{
if (nm_device_get_state (dev) == NM_DEVICE_STATE_ACTIVATED ||
nm_device_is_activating (dev)) {
-   /* Start the link timeout so we allow some time for 
reauthentication */
+   /* Start the link timeout so we allow some time for 
reauthentication,
+* use a longer timeout if we are scanning
+*/
if (!self->priv->link_timeout_id)
-   self->priv->link_timeout_id = g_timeout_add 
(15000, link_timeout_cb, self);
+   self->priv->link_timeout_id = g_timeout_add
((self->priv->scanning) ? 3:15000,
+link_timeout_cb, self);
}
}

-   if (new_state == NM_SUPPLICANT_INTERFACE_CON_STATE_SCANNING) {
-   self->priv->scanning = TRUE;
-   } else {
-   self->priv->scanning = FALSE;
-   }
-
 out:
g_slice_free (struct state_cb_data, cb_data);
return FALSE;
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Where to find network-manager source code?

2008-06-19 Thread drago01
On Thu, Jun 19, 2008 at 9:51 PM, Brett Alton <[EMAIL PROTECTED]> wrote:
> Ubuntu 8.04 uses NM 0.6.6 and OpenSuse 11.0 uses NM 0.7 yet the latest
> source at http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/ is
> 0.6.5. Where are they getting your source code from?

0.7 isn't released yet ... you can find the source in gnome's svn.
http://svn.gnome.org/viewvc/NetworkManager/trunk/?view=log
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Fedora 9 NetworkManager

2008-04-25 Thread drago01
On Fri, Apr 25, 2008 at 5:59 PM, Dan Williams <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2008-04-25 at 17:42 +0200, drago01 wrote:
>  > On Thu, Apr 24, 2008 at 10:23 PM, Dan Williams <[EMAIL PROTECTED]> wrote:
>  >
>  > >  Second, you'll want to put:
>  > >
>  > >  DNS1=xxx.xxx.xxx.xxx
>  > >  DNS2=xxx.xxx.xxx.xxx
>  > >
>  > >  into your /etc/sysconfig/network-scripts/ifcfg-eth0
>  > For me this seems not to work like it should NM only picked up the
>  > "DNS1" entry but ignored "DNS2".
>  > Tested using NetworkManager-0.7.0-0.6.7.svn3590.fc8 on F8 but F9 uses
>  > the same version so should be the same here.
>  > Known bug?
>
>  Nope, I'll go take a look, thanks.
>
>  Dan

Thx for the quick fix (svn commit). There is one more thing I noticed
both notify popup and tooltip report hidden ssid as "(none)" (but
connection still work fine).
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Fedora 9 NetworkManager

2008-04-25 Thread drago01
On Thu, Apr 24, 2008 at 10:23 PM, Dan Williams <[EMAIL PROTECTED]> wrote:

>  Second, you'll want to put:
>
>  DNS1=xxx.xxx.xxx.xxx
>  DNS2=xxx.xxx.xxx.xxx
>
>  into your /etc/sysconfig/network-scripts/ifcfg-eth0
For me this seems not to work like it should NM only picked up the
"DNS1" entry but ignored "DNS2".
Tested using NetworkManager-0.7.0-0.6.7.svn3590.fc8 on F8 but F9 uses
the same version so should be the same here.
Known bug?
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: 0.7.0 anytime soon?

2008-02-11 Thread drago01
On Feb 11, 2008 6:30 PM, Dan Williams <[EMAIL PROTECTED]> wrote:
> This will be available through the Connection editor; you'll be able to
> do exactly that through a button there, assuming you have the
> appropriate permissions.

Talking about permissions seems like nm-system-setting does not work
well with selinux (F8, NM package from koji):

audit(1202735380.555:4): avc:  denied  { getattr } for  pid=2210
comm="nm-system-setti" path="inotify" dev=inotifyfs ino=1
scontext=system_u:system_r:system_dbusd_t:s0
tcontext=system_u:object_r:inotifyfs_t:s0 tclass=dir
...
audit(1202735380.610:7): user pid=1826 uid=81 auid=4294967295
subj=system_u:system_r:system_dbusd_t:s0 msg='avc:  denied  { send_msg
} for msgtype=signal interface=org.freedesktop.NetworkManagerSettings
member=NewConnection dest=org.freedesktop.DBus spid=2210 tpid=2196
scontext=system_u:system_r:system_dbusd_t:s0
tcontext=system_u:system_r:NetworkManager_t:s0 tclass=dbus
: exe="/bin/dbus-daemon" (sauid=81, hostname=?, addr=?, terminal=?)'
..
audit(1202735417.269:8): user pid=1826 uid=81 auid=4294967295
subj=system_u:system_r:system_dbusd_t:s0 msg='avc:  denied  { send_msg
} for msgtype=method_return dest=:1.21 spid=2210 tpid=2524
scontext=system_u:system_r:system_dbusd_t:s0
tcontext=unconfined_u:system_r:unconfined_t:s0-s0:c0.c1023 tclass=dbus
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list