diff options
Diffstat (limited to 'src/provider.c')
-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); |