[PATCH v5 13/42] provider: Initially provider ipconfigs are now OFF

Jukka Rissanen jukka.rissanen at linux.intel.com
Mon Nov 12 04:07:29 PST 2012


The ipconfig is marked as fixed when IP address is set to
that ipconfig.
---
 src/provider.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/provider.c b/src/provider.c
index 696ed87..64a871b 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -439,10 +439,9 @@ void connman_provider_set_index(struct connman_provider *provider, int index)
 		}
 	}
 
-	__connman_ipconfig_set_method(ipconfig, CONNMAN_IPCONFIG_METHOD_FIXED);
+	__connman_ipconfig_set_method(ipconfig, CONNMAN_IPCONFIG_METHOD_OFF);
 	__connman_ipconfig_set_index(ipconfig, index);
 
-
 	ipconfig = __connman_service_get_ip6config(service);
 
 	if (ipconfig == NULL) {
@@ -479,6 +478,8 @@ int connman_provider_set_ipaddress(struct connman_provider *provider,
 
 	provider->family = ipaddress->family;
 
+	__connman_ipconfig_set_method(ipconfig, CONNMAN_IPCONFIG_METHOD_FIXED);
+
 	__connman_ipconfig_set_local(ipconfig, ipaddress->local);
 	__connman_ipconfig_set_peer(ipconfig, ipaddress->peer);
 	__connman_ipconfig_set_broadcast(ipconfig, ipaddress->broadcast);
-- 
1.7.11.4




More information about the connman mailing list