> +             if (g_str_has_prefix(key, "foreign_option_")) {
> +                     gchar **options;
> +
> +                     options = g_strsplit(value, " ", 3);
> +                     if (options[0] != NULL &&
> +                                     !strcmp(options[0], "dhcp-option") &&
> +                                     options[1] != NULL &&
> +                                     !strcmp(options[1], "DNS") &&
> +                                     options[2] != NULL) {
> +                             connman_provider_set_string(provider, "DNS",
> +                                                             options[2]);
> +                     }
> +
> +                     g_strfreev(options);
> +             }

The DNS entries should be concatenated together into one string and
then set on the provider. This version will only set the last DNS
entry.
_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to