ipconfig: Use system set addresses for IPv4 property in 'manual' mode
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 24 May 2013 11:38:01 +0000 (14:38 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 24 May 2013 13:05:15 +0000 (16:05 +0300)
Addresses and gateway for the service IPv4 property being used in the
system are available from ipconfig->system when the property is set to
'manual'.

src/ipconfig.c

index 9de73aa7e7f4e572b7336baac293df4e21891b1c..694cc61498866491d90b2864f3804e2d9b4a0544 100644 (file)
@@ -1761,10 +1761,10 @@ void __connman_ipconfig_append_ipv4(struct connman_ipconfig *ipconfig,
                return;
 
        case CONNMAN_IPCONFIG_METHOD_FIXED:
-       case CONNMAN_IPCONFIG_METHOD_MANUAL:
                append_addr = ipconfig->address;
                break;
 
+       case CONNMAN_IPCONFIG_METHOD_MANUAL:
        case CONNMAN_IPCONFIG_METHOD_DHCP:
                append_addr = ipconfig->system;
                break;