diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-12 14:07:29 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-23 12:58:51 +0200 |
commit | a7113388cbe5a919d0b5c4866257fef6f2107d36 (patch) | |
tree | 0d48cdd60d4ddd87f71ba7c10472207b59c0681b | |
parent | 2274270ea3b7a8eec0e8b7e6b5b8434610f05874 (diff) | |
download | connman-a7113388cbe5a919d0b5c4866257fef6f2107d36.tar.gz connman-a7113388cbe5a919d0b5c4866257fef6f2107d36.tar.bz2 connman-a7113388cbe5a919d0b5c4866257fef6f2107d36.zip |
provider: Initially provider ipconfigs are now OFF
The ipconfig is marked as fixed when IP address is set to
that ipconfig.
-rw-r--r-- | src/provider.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/provider.c b/src/provider.c index 696ed877..64a871b5 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); |