Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. Re: Force disable a service (Daniel Wagner)
2. Re: Wrong state of a service if only IPv6 is enabled
(Daniel Wagner)
3. Re: [PATCH 3/3] vpn: Save configuration only when a parameter
has been changed (Daniel Wagner)
4. Re: [PATCH 1/3] vpn: Read user routes from D-Bus message into
sorted list (Daniel Wagner)
5. Re: Force disable a service (Alexandru Vasiu)
----------------------------------------------------------------------
Message: 1
Date: Tue, 2 Oct 2018 08:54:55 +0200
From: Daniel Wagner <[email protected]>
To: Alexandru Vasiu <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: Force disable a service
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Hi Alex,
On Mon, Oct 01, 2018 at 01:42:54PM +0000, Alexandru Vasiu wrote:
> I want to disable a service and to remain like that (even if I
> pull out the cable and I plug in) until I enable it (using DHCP or
> static method), without restarting connman daemon.
>
> I tried with a config file in /var/lib/connman:
>
> root:/var/lib/connman# cat interfaces.config
> [service_00802F23CA1B]
> MAC = 00:80:2F:23:CA:1B
> Name = ethernet_cable_00802F23CA1B
> IPv4 = off
ConnMan should pick up the changes during runtime in /varlib/connman
if configure was called with '--localstatedir=/var'.
The config above looks indeed okay. Try it with 'Type = ethernet'. It
looks like something criteria is missing so that the provisioning is
applied.
Is there anything useful in the log (connmand -n -d)?
> and then I disconnected the service using disconnect command. The problem is
> that after I re-plug in the cable, connman ignores the config file and sets
> that interface using DHCP.
>
> I also tried with NetworkInterfaceBlacklist from /etc/connman/main.conf, but
> this requires a restart of connmand.
This file is not monitored during runtime.
> Is there another solution to this issue?
It looks like the match is not working. Maybe we should add some real
debug help for this. it is not the first time I am trying to figure
out what is happening in provisioning code :)
Thanks,
Daniel
------------------------------
Message: 2
Date: Tue, 2 Oct 2018 08:57:36 +0200
From: Daniel Wagner <[email protected]>
To: Marek Szanyi <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: Wrong state of a service if only IPv6 is enabled
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Hi Marek,
On Wed, Sep 26, 2018 at 11:31:31AM +0000, Marek Szanyi wrote:
> I have a device running connman v 1.35. For the Ethernet service if
> IPv4 is enabled or both IPv4 and IPv6 is enabled the state of the
> Ethernet service is reported correctly. Because the device have
> internet access the state is "online". However if I disable IPv4 and
> leave only IPv6 enabled the state of the service reported by connman
> is "idle", which is wrong, because I still have internet access
> (verified by using curl). Is this an expected behavior or is this a
> bug in connman?
I would expect that the state should remain in online if IPv6 is still
up. How do you disable IPv4? Is it via ConnMan's D-Bus API?
Thanks,
Daniel
------------------------------
Message: 3
Date: Tue, 2 Oct 2018 09:15:13 +0200
From: Daniel Wagner <[email protected]>
To: Jussi Laakkonen <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 3/3] vpn: Save configuration only when a parameter
has been changed
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Hi Jussi,
> +#define PROP_CHANGED 0
> +#define PROP_NOT_CHANGED 1
I am not terrible enthuastic about introducing this convention. If I
got this right, these return values are for the set_string()
function.
So far set_string() returns -ENOMEM in case g_try_new0(struct
vpn_settings()) fails. Though in set_string() there are plenty of glib
calls (g_ascii_down(), g_strdup(), ...) which will call abort() if
memory allocation fails. So I wonder if it wouldn't be better to do
streamline all allocation to abort() when no memory is available.
Well and there is the permission check, though no caller is interested
in the return value anyway. Hmm, I think that DBG() should also be a
proper connman_warn() or connman_info() instead.
In short, I think set_string() could need some 'refactoring'.
What do you think?
Thanks,
Daniel
------------------------------
Message: 4
Date: Tue, 2 Oct 2018 09:16:00 +0200
From: Daniel Wagner <[email protected]>
To: Jussi Laakkonen <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 1/3] vpn: Read user routes from D-Bus message into
sorted list
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Hi Jussi,
On Mon, Oct 01, 2018 at 06:58:31PM +0300, Jussi Laakkonen wrote:
> This commit adds a sorting function for adding user routes into the
> GSList. Order of the routes is determined by 1) IP protocol (based on
> their numeric values), 2) network addresses, 3) netmask addresses and
> 4) gateway address.
Can you add one sentence why the sorting is a good thing?
Thanks,
Daniel
------------------------------
Message: 5
Date: Tue, 2 Oct 2018 12:53:42 +0000
From: Alexandru Vasiu <[email protected]>
To: Daniel Wagner <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: Force disable a service
Message-ID:
<sn6pr04mb49268c504ec98f19e3bd8e5698...@sn6pr04mb4926.namprd04.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Daniel,
It works if I add "Type=ethernet" to that config.
Thank you,
Alex
________________________________________
From: Daniel Wagner <[email protected]>
Sent: Tuesday, October 2, 2018 9:54 AM
To: Alexandru Vasiu
Cc: [email protected]
Subject: Re: Force disable a service
Hi Alex,
On Mon, Oct 01, 2018 at 01:42:54PM +0000, Alexandru Vasiu wrote:
> I want to disable a service and to remain like that (even if I
> pull out the cable and I plug in) until I enable it (using DHCP or
> static method), without restarting connman daemon.
>
> I tried with a config file in /var/lib/connman:
>
> root:/var/lib/connman# cat interfaces.config
> [service_00802F23CA1B]
> MAC = 00:80:2F:23:CA:1B
> Name = ethernet_cable_00802F23CA1B
> IPv4 = off
ConnMan should pick up the changes during runtime in /varlib/connman
if configure was called with '--localstatedir=/var'.
The config above looks indeed okay. Try it with 'Type = ethernet'. It
looks like something criteria is missing so that the provisioning is
applied.
Is there anything useful in the log (connmand -n -d)?
> and then I disconnected the service using disconnect command. The problem is
> that after I re-plug in the cable, connman ignores the config file and sets
> that interface using DHCP.
>
> I also tried with NetworkInterfaceBlacklist from /etc/connman/main.conf, but
> this requires a restart of connmand.
This file is not monitored during runtime.
> Is there another solution to this issue?
It looks like the match is not working. Maybe we should add some real
debug help for this. it is not the first time I am trying to figure
out what is happening in provisioning code :)
Thanks,
Daniel
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 36, Issue 2
**************************************