[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 2/2] enable dns settings of wireless connection



On 06/07/2011 11:42 AM, Vratislav Podzimek wrote:

@@ -2441,6 +2445,10 @@ int add_and_activate_wifi_connection(char **iface, char *ssid,
              NM_SETTING_IP4_CONFIG_METHOD, NM_SETTING_IP4_CONFIG_METHOD_MANUAL,
              NM_SETTING_IP4_CONFIG_ADDRESSES, addresses,
              NULL);
+        if (dns) {
+            nbo_dns = ip_str_to_nbo(dns);
+            nm_setting_ip4_config_add_dns(s_ip, nbo_dns);
+        }

You should handle multiple nameservers here (comma separated,
e.g. see loader/loader.c:320).

Radek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]