Metered connections

2015-04-30 Thread Beniamino Galvani
Hi, we have an open BZ item requesting a way to report information about metered connections: https://bugzilla.gnome.org/show_bug.cgi?id=741725 I was thinking to a possible way to implement this starting from Thomas' comments on BZ and my current idea is: - each connection would have a

Re: dhcpcd support broken

2015-05-27 Thread Beniamino Galvani
On Tue, 2015-05-26 at 18:24 -0500, Dan Williams wrote: I suppose instead NM could exec dhcpcd -V and then look for the string DHCPv6 options: in the output the first time dhcpcd is run. Beniamino, could you look into that? In my opinion the current way of testing this is correct, since

Re: dhcpcd support broken

2015-05-27 Thread Beniamino Galvani
On Wed, 2015-05-27 at 10:15 +0200, Beniamino Galvani wrote: A potential problem is that IPv6 support in dhcpcd can be set from configure script only when the executable path is autodetected (- -with -dhcpcd=yes) and not when a path is specified. So switching to runtime detection could make

Re: typo(s) in src/devices/wan/nm-modem.c

2015-07-29 Thread Beniamino Galvani
On Wed, 2015-07-29 at 00:35 +0200, Benni the Manic wrote: Hello, there is a spelling mistake in src/devices/wan/nm-modem.c where unsupported is misspelled as unsuported twice. Fixed, thanks. Beniamino ___ networkmanager-list mailing list

Re: slowly or no configured connection usage

2015-08-05 Thread Beniamino Galvani
On Wed, Aug 05, 2015 at 03:41:06AM +0200, Ingo Flaschberger wrote: We realize that treating an interface with only an IPv6LL address isn't very useful though, especially since the kernel will assign an LL address whenever the interface is brought IFF_UP, which often happens during boot for

Re: slowly or no configured connection usage

2015-08-05 Thread Beniamino Galvani
On Wed, Aug 05, 2015 at 11:04:06PM +0200, Ingo Flaschberger wrote: attached backport patch for 0.9.10.0 Hi Ingo, the backport looks good to me. @@ -545,6 +554,8 @@ priv-ignore_carrier = g_key_file_get_string_list (priv-keyfile, main, ignore-carrier, NULL, NULL); +

Re: [RFC] Revise NM behavior for Unmanaged Devices and Assuming Connections (bgo 746440)

2015-11-12 Thread Beniamino Galvani
On Mon, Nov 09, 2015 at 05:43:35PM +0100, Thomas Haller wrote: > The last_seen_timestamp is there to eventually garbage collect the > state entry. Note that we write a state-entry for every device we see. Do we need to write a state-file entry also for devices that we see but we don't (initially)

Re: ethernet.wake-on-lan

2015-09-14 Thread Beniamino Galvani
On Mon, Sep 14, 2015 at 01:08:06AM +0200, poma wrote: > As shown, "ethernet.wake-on-lan=0" has no effect on disabling > NetworkManager's WOL management. > I wonder if such a possibility exists, at all. NetworkManager configures on the device the options specified in configuration file and if

Re: [PATCH 2/2] Added OpenSSL crypto backend

2015-11-19 Thread Beniamino Galvani
On Thu, Nov 19, 2015 at 12:01:09AM +, Joel Holdsworth wrote: > +if WITH_OPENSSL > +AM_CPPFLAGS += $(OPENSSL_CFLAGS) > +libnm_core_la_SOURCES += crypto_openssl.c > +libnm_core_la_LIBADD += $(OPENSSL_LIBS) > +endif Hi, this page mentions some legal issues in linking a GPL program against

Re: network manager and 10.42.0.1

2016-06-10 Thread Beniamino Galvani
On Fri, Jun 10, 2016 at 10:24:57AM +0200, Bhasker C V wrote: > Hi all, > > I am following up this question after asking this with debian-users group. > > I am at a loss to find out how to change 10.42.0.1/24 and 10.42.0.x/24 as > ip and dhcp range which is used by network manager when

Re: Wait for DHCP client on interface activation

2016-06-14 Thread Beniamino Galvani
On Tue, Jun 14, 2016 at 01:32:42PM +, Alexander Pisarev wrote: > Hello everyone, > > I want to ask is it ok that n-m didn't waiting for DHCP client? > Cause when I try to up connection by nmcli, it waiting for something, but not > dhclient. > Maybe be it's possible to add some option or

Re: [vpn-plugins] don't maintain a separate stable branch nm-1-2 yet

2016-05-26 Thread Beniamino Galvani
On Wed, May 25, 2016 at 05:23:17PM +0200, Thomas Haller wrote: > Merge the stable branch 'nm-1-2' into master > > And don't maintain a separate stable branch in upstream, until 'master' > bumps > the required NetworkManager API to 1.3. Until then, 'master' shall be >

Re: Wait for DHCP client on interface activation

2016-06-18 Thread Beniamino Galvani
On Sat, Jun 18, 2016 at 08:11:27AM +, Alexander Pisarev wrote: > The first connection is fine. But my case is in second connection. > I call this command: > > # date && nmcli c up prl_nettool-nm-eth0 && ip a && date Hi, now it is clear, thanks; it looks like a bug and probably the one fixed

Re: Wait for DHCP client on interface activation

2016-06-20 Thread Beniamino Galvani
On Sat, Jun 18, 2016 at 11:27:47AM +, Alexander Pisarev wrote: > I try to set "ignore" and it helps. Thanks. > And can you give me link on bug, if you have it? AFAICT there is no bugzilla entry for it, the issue was found and fixed during development. Beniamino signature.asc Description:

Re: Wait for DHCP client on interface activation

2016-06-16 Thread Beniamino Galvani
On Thu, Jun 16, 2016 at 01:29:09PM +, Alexander Pisarev wrote: > I set may-fail to no for IPv4 and IPv6. And try to do up again. > > Same result. Command end successfully and no ip in interface. Hi, this is strange. Can you please show the output of "nmcli connection show " and attach a full

Re: Wait for DHCP client on interface activation

2016-06-17 Thread Beniamino Galvani
On Fri, Jun 17, 2016 at 02:17:07PM +, Alexander Pisarev wrote: > Hi. > > Here it is. If need more data or I do something wrong tell me. Hi, in the log I see: 10:04:50 NM[669]: Auto-activating connection 'prl_nettool-nm-eth0'. ... 10:04:51 dhclient[729]: DHCPDISCOVER on eth0 to

Re: [PATCH v2 0/9] ofono/wwan modem support

2016-06-17 Thread Beniamino Galvani
On Fri, Jun 17, 2016 at 10:05:54AM -0400, Tony Espy wrote: > Also, sorry for mangled formatting/indentation. There doesn't seem to have > been much consistency in the Ubuntu patches in the past. > > Is there a formal style-guide for NetworkManager? Any suggestions as for > the best emacs mode

[PATCH] exported-object: set object path after skeleton creation

2016-02-11 Thread Beniamino Galvani
When exporting an object, we first set the object path and then create GDBus interface skeletons. While doing this, a signal can be generated [1] and then nm_exported_object_signal_hook() can trigger the failed assertion "interface != NULL" because the object is already exported (priv->path !=

Re: [PATCH] wifi: ignore monitor interfaces

2016-02-23 Thread Beniamino Galvani
On Tue, Feb 23, 2016 at 02:35:53PM -0600, Dan Williams wrote: > If a monitor interface is created, NM will grab that interface > and change it to station mode. That's not very nice. LGTM. Beniamino signature.asc Description: PGP signature ___

Re: [PATCH 1/1] logging: change logging format to drop "[file:line] func():" part

2016-02-25 Thread Beniamino Galvani
On Thu, Feb 25, 2016 at 05:21:29PM +0100, Thomas Haller wrote: > Choose a new logging format. > > - the logging format must not be configurable and it must be the > same for all backends. It is neat that journal supports additional > fields, but an average user still posts the output of plain

Re: [PATCH 1/1] platform: optimize sysctl_set() to use stack allocated buffer

2016-02-24 Thread Beniamino Galvani
On Tue, Feb 23, 2016 at 11:54:43PM +0100, Thomas Haller wrote: > The value written to sysctl is usually a short string. It makes sense > to optimize for this case and avoid allocating a temporary string > on the heap. LGTM. Beniamino signature.asc Description: PGP signature

Re: [PATCH] handle tls auth blobs correctly

2016-01-22 Thread Beniamino Galvani
On Fri, Jan 22, 2016 at 12:50:49PM +0100, Matthias Berndt wrote: > Hi Beniamino et al, > > networkmanager-openvpn doesn't currently handle blobs correctly. > I've modified networkmanager-openvpn to support this functionality and fixed > two minor bugs in the process. I'd be thrilled if you

Re: [PATCH] platform: ignore permanent MAC addresses of all ones (FF:FF:FF:FF:FF:FF)

2016-01-25 Thread Beniamino Galvani
On Mon, Jan 25, 2016 at 01:05:17PM -0600, Dan Williams wrote: > Drivers are stupid, and just like the platform ignores an all zeros > permanent address, so should it ignore all ones. > > --- a/src/platform/nm-platform-utils.c > +++ b/src/platform/nm-platform-utils.c > @@ -142,7 +142,8 @@

Re: [PATCH v2] dns: clean up error paths in dns-manager

2016-01-25 Thread Beniamino Galvani
On Mon, Jan 25, 2016 at 12:59:22PM -0600, Dan Williams wrote: > From 2370f508df8400b424fec032f8314cea97fdbaef Mon Sep 17 00:00:00 2001 > From: Dan Williams > Date: Wed, 20 Jan 2016 13:52:59 -0600 > Subject: [PATCH] dns: clean up error paths in dns-manager > > Specifically for

Re: How to create a simple tap0 interface using nmcli

2016-01-25 Thread Beniamino Galvani
On Mon, Jan 25, 2016 at 02:46:54AM +, Vincent Fortier wrote: > I was wondering how can I create a tap interface using nmcli? Search again > and again witouth luck... Hi, creation of tun/tap devices is supported only in NetworkManager 1.2. On such version you can create a tap connection

[PATCH] manager: fix assumption of child connections with autoconnect=no

2016-03-08 Thread Beniamino Galvani
During startup, when a link is detected (enp0s25 in the example below) we try to create also virtual devices (ipip1) on it through system_create_virtual_device(), however this realizes only devices for connections which can autoactivate. To support the assumption of child devices with

Re: [PATCH 1/1] applet: fix tracking of active access-point

2016-03-08 Thread Beniamino Galvani
On Tue, Mar 08, 2016 at 10:00:51AM +0100, Thomas Haller wrote: > Fix that, by registering a weak-ref to the access-point, so that we > notice when the access-point gets destroyed. Note that we don't want > to take strong references, because neither device, access-point nor > applet should keep

ANN: NetworkManager 1.1.91 (1.2-beta2) released

2016-03-01 Thread Beniamino Galvani
Hi, I'm pleased to announce the release of the second beta version of NetworkManager 1.2 (1.1.91), and the same version of nm-applet, nm-connection-editor and VPN plugins. This release contains lots of bug fixes and code cleanups, but also support for detecting IPv4 address conflicts and a new

Re: [PATCH] manager: fix assumption of child connections with autoconnect=no

2016-03-09 Thread Beniamino Galvani
On Tue, Mar 08, 2016 at 12:39:17PM +0100, Thomas Haller wrote: > should be declared inside the loop, otherwise as you iterate they get > reset and leak (or fail assertion g_return_if_fail (!error || > !*error)). Fixed and applied, thanks. Beniamino signature.asc Description: PGP signature

Re: Connection priority for DNS (sorry)

2016-04-05 Thread Beniamino Galvani
On Tue, Apr 05, 2016 at 05:46:34AM +, Benjamin Lefoul wrote: > (I know, priority of connections seems to be a recurring object of > confusion...) > > When automatically filling resolv.conf (with red hat plugin at least), it > seems ifcfg-* connection files get treated in alphabetical order.

Re: NM changes DHCP address too easily

2016-04-22 Thread Beniamino Galvani
On Fri, Apr 22, 2016 at 03:28:43PM +0300, matti kaasinen wrote: > Hi! > > I have found NM switching DHCP address quite frequently, which is pretty > annoying as this happens on embedded board that has only internet access > available. Do you mean that the board is getting a different address at

Re: add-connection-libnm.c example code Segmentation Fault

2016-04-19 Thread Beniamino Galvani
On Tue, Apr 19, 2016 at 04:20:43PM -0700, Ali Nematollahi wrote: > https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/C/glib/add-connection-libnm.c > > When I compile and run the libnm version of this code, I constantly get the > "Segmentation Fault" error message. But when

Re: system sleep -> nm reacts too fast

2016-07-13 Thread Beniamino Galvani
On Wed, Jul 13, 2016 at 06:41:00PM +0200, Michael Hirmke wrote: > I tried > - the systemd sleep scripts (/usr/lib/systemd/system-sleep) > - the NetworkManager dispatcher scripts > (/etc/NetworkManager/dispatcher.d) Did you use a 'pre-down' script (see 'man NetworkManager' for the details)? That

Re: [PATCH v2 1/5] A new object 'NMProxyConfig' with fields for proxy.

2016-07-28 Thread Beniamino Galvani
On Wed, Jul 27, 2016 at 09:00:12PM +0530, Atul Anand wrote: > > I haven't tested this as i haven't a DHCP server with configured > pac_url. Probably you can easily simulate it using a veth pair and dnsmasq in a different namespace; something like: ip netns add ns1 ip link add veth0 type veth

Re: [PATCH v2 3/5] NMSettingProxy added to libnm-core

2016-07-27 Thread Beniamino Galvani
On Tue, Jul 12, 2016 at 05:57:18PM +0530, Atul Anand wrote: > libnm-core has been expanded to include proxy settings which clients > like nm-connection-editor use to configure proxy in PacRunner. It > offers three modes i.e 'none', 'auto' and 'manual' and according take > data to configure

Re: [PATCH v2 1/5] A new object 'NMProxyConfig' with fields for proxy.

2016-07-27 Thread Beniamino Galvani
On Tue, Jul 12, 2016 at 05:57:16PM +0530, Atul Anand wrote: > A new object NMProxyConfig has been implemented which contain fields > for proxy related stuff. Could you please prefix each commit subject with the component or area affected by the change as: core: ... or proxy: ... Would it

Re: NetworkManager autoconnects to profiles in reverse order

2016-08-10 Thread Beniamino Galvani
On Wed, Aug 10, 2016 at 01:50:53PM +0200, Simon Wydooghe wrote: > This is the patch I made to nm-device.c: > > --- nm-device.c 2016-08-10 13:45:09.0 +0200 > +++ nm-device_patched.c 2016-08-10 13:46:30.408878875 +0200 > @@ -1267,7 +1267,7 @@ > s_con =

Re: Problem with passing list of strings to load_connections

2016-08-04 Thread Beniamino Galvani
On Thu, Aug 04, 2016 at 11:51:39AM +0200, Petr Horacek wrote: > I'm trying to reload ifcfg file via Python. load_client method should > accept array of strings [1], but when I pass list of strings to it, it > fails with "TypeError: Must be string, not list". When I pass just a > string, it crashes

Re: NetworkManager autoconnects to profiles in reverse order

2016-08-10 Thread Beniamino Galvani
On Mon, Aug 08, 2016 at 09:53:22PM +0200, Simon Wydooghe wrote: > Fot his, we need to provide four NetworkManager profiles, one DHCP and > three static. It seems I've stumbled onto a bug with > NetworkManager 0.9.8.8. When I select a profile manually and reboot, > NetworkManager connects to the

Re: system sleep -> nm reacts too fast

2016-07-13 Thread Beniamino Galvani
On Wed, Jul 13, 2016 at 07:16:00PM +0200, Michael Hirmke wrote: > Hi Beniamino, > > >On Wed, Jul 13, 2016 at 06:41:00PM +0200, Michael Hirmke wrote: > >> I tried > >> - the systemd sleep scripts (/usr/lib/systemd/system-sleep) > >> - the NetworkManager dispatcher scripts > >>

Re: fallback DNS server

2016-07-21 Thread Beniamino Galvani
On Thu, Jul 21, 2016 at 08:17:22AM +0200, Nicolas Bock wrote: > I am using 'dns=dnsmasq' and would like to specify a fallback DNS > server that is always appended to the list of servers in the > auto-generated dnsmasq.conf. Is that possible? Hi, you can drop a file with additional configuration

Re: fallback DNS server

2016-07-21 Thread Beniamino Galvani
On Thu, Jul 21, 2016 at 09:54:03AM +0200, Nicolas Bock wrote: > How do I check that dnsmasq is using the server? NetworkManager started > dnsmasq with > > /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts > --bind-interfaces --pid-file=/run/NetworkManager/dnsmasq.pid >

Re: [PATCH 2/3] device: add statistics interface

2016-06-28 Thread Beniamino Galvani
On Thu, Jun 23, 2016 at 03:25:24PM +0200, Alfonso Sanchez-Beato wrote: > --- /dev/null > +++ b/introspection/nm-device-statistics.xml > @@ -0,0 +1,43 @@ > + > + > + > + > +

Re: [PATCH 4/5] auth: check when setting statistics refresh rate

2016-08-06 Thread Beniamino Galvani
On Thu, Aug 04, 2016 at 04:16:22PM +0200, Alfonso Sanchez-Beato wrote: > --- > clients/cli/general.c | 2 ++ > libnm/nm-client.h | 5 - > libnm/nm-manager.c| 2 ++ > shared/nm-common-macros.h | 1 + > src/nm-audit-manager.h| 1 + > src/nm-manager.c | 10

Re: [PATCH 3/5] device: add statistics interface

2016-08-06 Thread Beniamino Galvani
On Thu, Aug 04, 2016 at 04:16:21PM +0200, Alfonso Sanchez-Beato wrote: > Add statistics interface to all device instances. When active, the > properties of this interface are refreshed whenever there is network > activity for the device. > index 000..6a39bbd > --- /dev/null > +++

Re: [PATCH 2/5] platform: Add network statistics

2016-08-06 Thread Beniamino Galvani
On Thu, Aug 04, 2016 at 04:16:20PM +0200, Alfonso Sanchez-Beato wrote: > Make network traffic statistics data available through the platform. Hi, the series looks very good, thanks! Some suggestions inline. > +static gboolean > +link_get_stats (NMPlatform *platform, int ifindex, > +

Re: ANN: NetworkManager 1.2.4 released

2016-08-08 Thread Beniamino Galvani
On Sun, Aug 07, 2016 at 11:14:45PM +0200, Michael Biebl wrote: > Since the upgrade to 1.2.4, I noticed that my network connection > (wireless) is gone after a suspend/resume and NM does not auto-connect > on resume. > > Is anyone else seeing this behaviour? If so, I would file a bug report > for

ANN: NetworkManager 1.3.90 (1.4-beta1) released

2016-08-03 Thread Beniamino Galvani
Hi, I'm pleased to announce the release of NetworkManager 1.3.90 (1.4-beta1) and the same version of nm-applet. This is a first pre-release of the next NetworkManager version (1.4), which is planned to be released by the end of the month. We decided to make new functionalities and improvements

Re: [PATCH 1/1] device/wifi: drop messing with wpa-supplicant's support for MAC address randomization

2017-02-07 Thread Beniamino Galvani
On Sun, Feb 05, 2017 at 11:18:08PM +0100, Thomas Haller wrote: > We no longer use wpa_supplicant for MAC address randomization. Instead, > NetworkManager > handle it on it's own. It is actually important that supplicant does not > interfere > when setting the MAC address of the device. > > The

Re: [PATCH 1/1] wifi: introduce enum type NMSupplicantInterfaceState instead of plain int

2017-02-14 Thread Beniamino Galvani
On Tue, Feb 14, 2017 at 01:30:25AM +0100, Thomas Haller wrote: > Also change the signature of the NM_SUPPLICANT_INTERFACE_STATE signal, > to have three "int" type arguments. Thereby also fix the subscribers > to this signal that wrongly had type guint32, instead of guint > (which happens to be the

Re: issues with long connection time for Non/802.1x networks

2017-01-19 Thread Beniamino Galvani
On Wed, Jan 18, 2017 at 12:42:41AM +0100, dennis knorr wrote: > Hi, > > [...] > > My wishes/requirements would be: > * possibility to configure timeout for non-successfull connection > attempt with 802.1x/wpa supplicant (on cable/wireless) The timeout is now hardcoded to 25 seconds:

Re: issues with long connection time for Non/802.1x networks

2017-01-20 Thread Beniamino Galvani
On Thu, Jan 19, 2017 at 12:12:42PM +0100, Beniamino Galvani wrote: > On Wed, Jan 18, 2017 at 12:42:41AM +0100, dennis knorr wrote: > > Hi, > > > > [...] > > > > My wishes/requirements would be: > > * possibility to configure timeout for non-successfull

Re: [PATCH v3 1/7] libnm: API for Proxy Feature

2016-08-04 Thread Beniamino Galvani
On Tue, Aug 02, 2016 at 02:01:05AM +0530, Atul Anand wrote: > libnm-core has been expanded to include proxy settings which clients > like nmcli, nm-connection-editor use to configure proxy in PacRunner. It > offers three modes i.e 'auto', 'manual'and 'none' and accordingly take > data to configure

Re: [PATCH v3 2/7] src:(proxy): A new Object NMProxyConfig with Proxy Parameters

2016-08-04 Thread Beniamino Galvani
On Tue, Aug 02, 2016 at 02:01:06AM +0530, Atul Anand wrote: > A new config object NMProxyConfig has been implemented inside core > which contains proxy parameters. [...] > + port = 0; > + tmp = nm_setting_proxy_get_ssl_proxy (setting); > + port =

Re: [PATCH v3 3/7] src:(pacrunner-manager): Object for interaction with PacRunner

2016-08-04 Thread Beniamino Galvani
On Tue, Aug 02, 2016 at 02:01:07AM +0530, Atul Anand wrote: > A new object NMPacRunnerManager has been added to manage and interact > PacRunner. It invokes both DBus methods on PacRunner DBus interface. > It stores the returned object path from CreateProxyConfiguration() > to feed as parameter to

Re: [PATCH v3 4/7] src: Fixes to add Proxy Feature

2016-08-04 Thread Beniamino Galvani
On Tue, Aug 02, 2016 at 02:01:08AM +0530, Atul Anand wrote: > src: Fixes in nm-device.c and nm-vpn-connection.c to update PacRunner > at the right place and moment. When a device goes up PacRunner is > configured with the Device IPxConfigs and Proxy Config. When it goes > down the same

Re: [PATCH] connection-editor: Fix handling of wired 802-1x security setting

2016-08-26 Thread Beniamino Galvani
ys lost. So don't copy settings, just use g_object_ref() again > > and remove the 8021x setting from the temporary object to prevent > > the clearing of secrets. > > > > Fixes: c21d56dd22057103c8125a49307b4ff47b5b644d > > This patch based on commit 4eecd6409730b0e

Re: [PATCH v2] Do not use /etc/resolv.conf symbolic links on SELinux

2016-09-29 Thread Beniamino Galvani
On Thu, Sep 29, 2016 at 02:06:58AM +0200, Guido Trentalancia wrote: > When SELinux is enabled, do not create a symbolic link to a "resolv.conf" > file outside /etc (e.g. in /var/run/NetworkManager), but instead create a > regular file in /etc. > > This is to avoid creating policy permissions to

ANN: NetworkManager 1.4.2 released

2016-09-30 Thread Beniamino Galvani
and the applet here: https://download.gnome.org/sources/NetworkManager/1.4/NetworkManager-1.4.2.tar.xz https://download.gnome.org/sources/network-manager-applet/1.4/network-manager-applet-1.4.2.tar.xz This release includes contributions from Beniamino Galvani, Francesco Giudici, Jiří Klimeš, Lubomir

Re: nm-applet: "No network devices available"

2016-11-14 Thread Beniamino Galvani
On Mon, Nov 14, 2016 at 11:57:03AM +0100, poma wrote: > = "Wired connection 1" > > 1. network-manager-applet-1.4.3-20161025gitefdc0aa >NetworkManager-1.5.1-20161104git9e4232d > > 2. network-manager-applet-1.4.3-20161113git75cac9f >NetworkManager-1.5.1-20161104git9e4232d > >

Re: [network-manager-openvpn] Problem adding vpn file from my provider FrootVPN.

2016-10-28 Thread Beniamino Galvani
On Thu, Oct 27, 2016 at 08:15:20PM +0200, Vicente Herrera Cobo wrote: > Regards to all, > > by adding a specified ovpn file from my provider get the following > error: "Error: configuration error: unsupported blob/xml element (line > 104)." > > Line 104: "" Hi, at the moment the openvpn plugin

Re: [PATCH 1/1] nm-dns-dnsmasq: clear cache when dns server changes

2016-11-29 Thread Beniamino Galvani
On Tue, Nov 29, 2016 at 10:10:21PM +0100, Thomas Haller wrote: > On Tue, 2016-11-29 at 20:23 +0100, Christian Hesse wrote: > > Thomas Haller on Tue, 2016/11/29 17:51: > > > On Tue, 2016-11-29 at 15:03 +0100, Christian Hesse wrote: > > > > From: Christian Hesse

Re: [PATCH 1/1] nm-dns-dnsmasq: clear cache when dns server changes

2016-11-30 Thread Beniamino Galvani
On Tue, Nov 29, 2016 at 04:44:00PM -0600, Dan Williams wrote: > > I tried the patch with the ClearCache call reverted and the behavior > > seems equivalent to master. How about branch bg/dnsmasq-clear-cache- > > option? > > LGTM Merged, thanks. Beniamino signature.asc Description: PGP

Re: [PATCH] linux: check the prefix 'wlan' for WiFi device as the last fallback method

2016-12-05 Thread Beniamino Galvani
On Mon, Dec 05, 2016 at 12:18:15PM +0100, Thomas Haller wrote: > On Mon, 2016-12-05 at 15:37 +0800, Shih-Yuan Lee (FourDollars) wrote: > > The sysfs path may not exist due to race conditions while accessing > > sysfs. > > > > It's better to check the prefix 'wlan' as the last fallback method. >

ANN: NetworkManager 1.2.6 released

2016-12-02 Thread Beniamino Galvani
/NetworkManager-1.2.6.tar.xz https://download.gnome.org/sources/network-manager-applet/1.2/network-manager-applet-1.2.6.tar.xz Thanks to everybody who contributed patches and translations: Anders Jonsson, Balázs Meskó, Beniamino Galvani, Bernd Homuth, Dan Williams, Dušan Kazik, Francesco Giudici

Re: [bug 776384] nm-applet not show wwan options on menu after logout/in

2017-01-04 Thread Beniamino Galvani
On Tue, Dec 27, 2016 at 02:44:43PM +0800, 志 wrote: > Hi All, > It's so nice to join this mailing list. > Recently I encounter a issue that nm-applet not show wwan options on menu > in my Ubuntu Xeinal 16.04.1: > https://bugzilla.gnome.org/show_bug.cgi?id=776384 Hi, the bug is now fixed on master

Re: problems with updating ipv4 settings over dbus

2016-12-19 Thread Beniamino Galvani
On Mon, Dec 19, 2016 at 11:15:59AM +0200, matti kaasinen wrote: > Hi! > > 'ipv4' dictionary before update printed below: > {u'address-data': dbus.Array([dbus.Dictionary({'prefix': dbus.UInt32(22L), > 'address': '192.168.3.25'}, signature=None)], > signature=dbus.Signature('a{sv}')), u'method':

Re: NetworkManager OpenVPN DNS returns REFUSED

2017-03-23 Thread Beniamino Galvani
On Wed, Mar 22, 2017 at 08:19:32PM -0400, Paul Smith wrote: > Hi all. I'm having a problem with DNS servers over openvpn. I use > NetworkManager to configure (via openvpn config file import) and > start/stop the VPN. I'm using Ubuntu GNOME 16.10, with: > > [...] > > I've also enabled "nmcli

Re: Automatically assign link local ipv4 address if dhcp fails

2017-03-15 Thread Beniamino Galvani
On Wed, Mar 15, 2017 at 01:36:29PM +0100, Viktor S. Wold Eide wrote: > What is the recommended approach / configuration to use in order to > automatically have an ipv4 link local address (in the 169.254/16 range) > assigned to an interface in case DHCP fails? > > > What is the recommended approach

Re: Automatically assign link local ipv4 address if dhcp fails

2017-03-20 Thread Beniamino Galvani
On Mon, Mar 20, 2017 at 11:21:22AM +0100, Viktor S. Wold Eide wrote: > On Wed, Mar 15, 2017 at 7:22 PM, Beniamino Galvani <bgalv...@redhat.com> > wrote: > I did install and test dhcpcd separately. It seems like dhcpcd works as > expected and provides ipv4 link local addresses

Re: [PATCH] applet: Check the user has permission to modify before showing dialog

2017-03-17 Thread Beniamino Galvani
On Tue, Mar 14, 2017 at 02:53:24PM +0100, Beniamino Galvani wrote: > On Tue, 2017-03-14 at 19:46 +0800, Aron Xu wrote: > > Hi, > > > > This patch is written by Iain Lane for a nm-applet vulnerability [1] > > reported to Ubuntu, it's applied to all supported Ubuntu rel

Re: Automatically assign link local ipv4 address if dhcp fails

2017-03-15 Thread Beniamino Galvani
On Wed, Mar 15, 2017 at 04:24:02PM +0100, Viktor S. Wold Eide wrote: > On Wed, Mar 15, 2017 at 3:16 PM, Beniamino Galvani <bgalv...@redhat.com> > wrote: > > > You can achieve this by creating two connections with different > > autoconnect priorities: > > > &

Re: [PATCH] applet: Check the user has permission to modify before showing dialog

2017-03-14 Thread Beniamino Galvani
On Tue, 2017-03-14 at 19:46 +0800, Aron Xu wrote: > Hi, > > This patch is written by Iain Lane for a nm-applet vulnerability [1] > reported to Ubuntu, it's applied to all supported Ubuntu releases as > a > security response. > > [1] https://bugs.launchpad.net/bugs/1668321 >  CVE 2017-6590

Re: [review] dcbw/wifi-scan: delegate connected scanning to wpa_supplicant

2017-08-03 Thread Beniamino Galvani
On Tue, Aug 01, 2017 at 08:05:41PM -0500, Dan Williams wrote: > Yeah, nm-applet should probably update itself asynchronously, like the > OS X Airport menu, but at least it requests scans since 1.8 so it'll be > updated the next time the menu is shown. Hi, nm-applet 1.8 can also update the open

Re: IPv4 problem with latest head version

2017-07-27 Thread Beniamino Galvani
On Thu, Jul 27, 2017 at 02:04:44PM +0100, colin.helliw...@ln-systems.com wrote: > Apologies for the vague subject, but I'm not too sure how to be more > specific. > I've been successfully using NM (fetched ~17 July), in conjunction with > ModemManager and a GSM modem. I just happen to have fetched

Re: Fwd: Re: IPv4 problem with latest head version

2017-07-28 Thread Beniamino Galvani
On Fri, Jul 28, 2017 at 08:34:49AM +0100, Colin Helliwell wrote: > Still asserting with this morning's Head. > gdb reports: > [...] Hi, I pushed a fix, can you please update and check if it works now? Thanks, Beniamino signature.asc Description: PGP signature

Re: [PATCH] Do not skip wifi slave connections

2017-05-18 Thread Beniamino Galvani
On Thu, May 18, 2017 at 11:42:47AM -0400, Nikolay Martynov wrote: > Just to clarify: this patch only affects wifi bonded connections. > 'Classic' ethernet bond slaves are still skipped - so this change > should not affect existing users. > I think the intention of original patch was to hide

Re: [PATCH] Use default active interface, even if it is of unsupported class

2017-05-23 Thread Beniamino Galvani
On Mon, May 22, 2017 at 10:48:58PM -0400, Nikolay Martynov wrote: > Hi. > > Just a kind ping. This patch was sent at the same time as one other > patch - which got merged quite some time ago. Just wanted to make sure > this one doesn't fall through the cracks. > Thanks! > > 2017-05-16 23:15

Re: Bugreport: macvlan device choosing wrong parent device

2017-09-26 Thread Beniamino Galvani
On Tue, Sep 26, 2017 at 09:36:44AM +0200, Ulrich Ölmann wrote: > Hi there, > So far so good. The problem is met when the connections are teared down and > NetworkManager is finally restarted: > ... > NetworkManager obviously created the MAC VLAN device on top of eth0 now which > seems to be a bug

Re: Bugreport: macvlan device choosing wrong parent device

2017-09-28 Thread Beniamino Galvani
On Wed, Sep 27, 2017 at 05:25:25PM +0200, Ulrich Ölmann wrote: > On Wed, Sep 27, 2017 at 04:56:39PM +0200, Beniamino Galvani wrote: > > On Wed, Sep 27, 2017 at 02:51:49PM +0200, Ulrich Ölmann wrote: > > > This is expected behaviour now, right? (Because of connection > &

Re: Bugreport: macvlan device choosing wrong parent device

2017-09-27 Thread Beniamino Galvani
On Tue, Sep 26, 2017 at 04:04:38PM +0200, Ulrich Ölmann wrote: > On Tue, Sep 26, 2017 at 03:23:15PM +0200, Beniamino Galvani wrote: > > On Tue, Sep 26, 2017 at 09:36:44AM +0200, Ulrich Ölmann wrote: > > > [...] > > > It looks like NetworkManager does not create

[PATCH 1/4] manager: ignore unmanaged devices when looking for parent by UUID

2017-09-27 Thread Beniamino Galvani
If the device is unmanaged, it is not compatible with any connection. https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00032.html --- src/nm-manager.c | 4 1 file changed, 4 insertions(+) diff --git a/src/nm-manager.c b/src/nm-manager.c index d0429fe9e..2e47a9759

[PATCH 2/4] device: deduplicate match_parent()

2017-09-27 Thread Beniamino Galvani
--- src/devices/nm-device-ip-tunnel.c | 40 ++ src/devices/nm-device-macvlan.c | 41 +-- src/devices/nm-device-private.h | 2 ++ src/devices/nm-device-vlan.c | 40 +-

[PATCH 3/4] device: deduplicate match_hwaddr()

2017-09-27 Thread Beniamino Galvani
--- src/devices/nm-device-macvlan.c | 28 ++-- src/devices/nm-device-private.h | 3 +++ src/devices/nm-device-vlan.c| 28 ++-- src/devices/nm-device.c | 26 ++ 4 files changed, 33 insertions(+), 52 deletions(-)

[PATCH 4/4] device: match all UUIDs when no connection is active

2017-09-27 Thread Beniamino Galvani
nm_device_match_parent() is called to check whether a device is compatible with a given parent (UUID or interface). Accept any UUID If there is no connection active on the device. Without this, when there is a VLAN/MACVLAN connection with a parent UUID the manager would create the device in

Re: Bugreport: macvlan device choosing wrong parent device

2017-09-27 Thread Beniamino Galvani
On Wed, Sep 27, 2017 at 02:51:49PM +0200, Ulrich Ölmann wrote: > This is expected behaviour now, right? (Because of connection "link-local" > using > a UUID inside its parent property and this UUID being found in a connection > that > has been applied to a different device than what link-local's

Re: nm 1.8.2 problem bring up wifi interface

2017-11-27 Thread Beniamino Galvani
On Sun, Nov 26, 2017 at 09:28:11PM +0100, Belisko Marek wrote: > Hi, > > I'm trying to use for my project networkmanager. I've build image > using yocto with nm v1.8.2. On my HW I'm using SDIO wifi chip > (esp8089) which I can operate with wpa_supplicant and simple config > file. When try to use

Re: issues with pppd error handling

2017-11-24 Thread Beniamino Galvani
On Wed, Nov 22, 2017 at 04:18:09PM +0100, Piotr Figiel wrote: > Hi, > I'm looking into couple issues we stumbled on with pppd and > NetworkManager. It's tested on NetworkManager 1.8.4, ModemManager > 1.6.8 and pppd 2.4.7. In general there are sporadic issues with > reconnecting when pppd exits

Re: issues with pppd error handling

2017-11-29 Thread Beniamino Galvani
On Mon, Nov 27, 2017 at 03:52:26PM +0100, Piotr Figiel wrote: > Is it really needed to receive and process notifications about > internal pppd state changes? Since pppd is/should be running in > nopersist mode pppd should exit upon connection termination. Actually > there were only two 'live'

Re: trying to bond ethernet and wifi with no luck

2018-05-22 Thread Beniamino Galvani
On Tue, May 22, 2018 at 06:25:14AM -0400, Brian J. Murrell wrote: > On Tue, 2018-05-22 at 07:58 +0200, Beniamino Galvani wrote: > > > > Hi, > > Hi. > > > bond-slave-wlp3s0-1 is of type 'ethernet', while it should be > > 'wifi'. You can create the

Re: trying to bond ethernet and wifi with no luck

2018-05-21 Thread Beniamino Galvani
On Mon, May 21, 2018 at 11:16:11PM -0400, Brian J. Murrell wrote: > Hi > > I am trying to bond an ethernet and wifi interface for seamless > wired/wifi switching where ethernet is the primary connection, but > fallback to wifi happens when the plug is pulled but with no IP > addressing changes. >

Re: [PATCH 1/4] wifi: add support for FILS

2018-01-03 Thread Beniamino Galvani
On Sat, Dec 23, 2017 at 07:26:03AM +0900, Masashi Honma wrote: > The FILS(Fast Initial Link Setup) is a specification defined by IEEE 802.11ai > to > speed up roaming. This patch adds support of it. I have tested with both > FILS-SHA256 and FILS-SHA384 by PEAP. > > Signed-off-by: Masashi Honma

Re: [PATCH v2 1/7] supplicant: set key_mgmt independent of pmf value

2018-01-15 Thread Beniamino Galvani
On Sun, Jan 14, 2018 at 09:33:50AM +0900, Masashi Honma wrote: > Previouslly, the value of ieee80211w and key_mgmt field in > wpa_supplicant.conf was defined by the value of pmf. > > NM_SETTING_WIRELESS_SECURITY_PMF_DISABLE > ieee80211w=0 > key_mgmt=wpa-eap >

[PATCH] wifi: enable WPA-*-SHA256 AKMs only when the supplicant supports them

2018-01-17 Thread Beniamino Galvani
Commit 87ec5e90fe79 ("supplicant: set key_mgmt independent of pmf value") enabled WPA-PSK-SHA256 or WPA-EAP-SHA256 even when the supplicant didn't support them, potentially causing connection failures. Instead, use the 'pmf' capability to detect when they can be enabled. Fixes:

Re: Caching nameserver on Fedora Workstation?

2018-02-21 Thread Beniamino Galvani
On Tue, Feb 20, 2018 at 05:44:10PM -0500, Matthew Miller wrote: > So, I have Fedora 27 Workstation, and I'd like to configure it to use a > caching nameserver. From the NetworkManager.conf man page, I'm led to > believe that dns=dnsmasq in [main] should do that. And, that *does* > cause dnsmasq to

Re: nmcli can't astablish connection to radius server with wpa eap tls

2018-02-21 Thread Beniamino Galvani
On Mon, Feb 19, 2018 at 12:59:04PM +0100, Iris Fiedler wrote: Hi, > freeRADIUS: 3.0.15 (on a different PC with OpenSuse 42.3) > Konfigured as wpa-eap tls with identity and password. EAP-TLS doesn't support passwords AFAIK. Perhaps you mean EAP-TTLS? > radius-tls.log > (35) Invalid user:

Re: [PATCH 1/4] wifi: add support for FILS

2018-01-04 Thread Beniamino Galvani
On Thu, Jan 04, 2018 at 08:22:17AM +0900, Masashi Honma wrote: > On 2018/01/03 22:39, Beniamino Galvani wrote: > > Hi, > > > > please also update the documentation comment of the key-mgmt property > > at the end of the file. > > Which file do you mean

Re: nmcli can't astablish connection to radius server with wpa eap tls

2018-03-07 Thread Beniamino Galvani
On Wed, Mar 07, 2018 at 10:28:18AM +0100, Iris Fiedler wrote: > Hi, > > I found my errror. My radius server had a wrong configuration and didn't send > the accepted response. So the network manager didn't received it and printed > an error. Hi, good to know! > Thank you for your help.

Re: [RFC PATCH v3 3/3] platform: add support for WireGuard links

2018-06-20 Thread Beniamino Galvani via networkmanager-list
On Sun, Jun 17, 2018 at 12:34:58PM +0100, Javier Arteaga wrote: > Add support for a new wireguard link type to the platform code. For now > this only covers querying existing links via genetlink and parsing them > into platform objects. > --- > > Notes: > Changes in v2->v3: > > *

Re: Update settings on a NM.RemoteConnection with python

2018-08-20 Thread Beniamino Galvani via networkmanager-list
On Sat, Aug 18, 2018 at 12:20:53AM +, infirit via networkmanager-list wrote: > Hi, > > I found that there is NM.RemoteConnection.replace_settings that takes a > GLib.Variant but I can't figure out what it needs to contain. > > Take the below SimpleConnection for a bluetooth dun connection

  1   2   >