On Mon, 2014-12-22 at 13:01 +0200, [email protected] wrote:
> From: Pasi Sjöholm <[email protected]>
> 
> Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when
> protocol is set ip/ipv6/dual on ofono, which can be only
> done when context is not active.
> ---
>  plugins/ofono.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/plugins/ofono.c b/plugins/ofono.c
> index 7a8442b..1617764 100644
> --- a/plugins/ofono.c
> +++ b/plugins/ofono.c
> @@ -1210,6 +1210,11 @@ static gboolean context_changed(DBusConnection *conn,
>               DBG("%s IPv6.Settings", modem->path);
>  
>               extract_ipv6_settings(&value, modem->context);
> +     } else if (g_str_equal(key, "Protocol")) {
> +             DBG("%s Protocol", modem->path);
> +
> +             modem->context->ipv4_method = CONNMAN_IPCONFIG_METHOD_UNKNOWN;
> +             modem->context->ipv6_method = CONNMAN_IPCONFIG_METHOD_UNKNOWN;

NACK.

If the protocol is ip, IPv6 needs to be off, if ipv6, IPv4 needs to be
off. The other protocol should be set to unknown (or dhcp/auto,
depending on how it works with the other patches).

Cheers,

        Patrik


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to