Set the IPv4 method to DHCP in case of DHCP udpates
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jan 2008 16:02:17 +0000 (17:02 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jan 2008 16:02:17 +0000 (17:02 +0100)
src/dhcp.c

index 2fa3f1f..3613224 100644 (file)
@@ -61,6 +61,8 @@ int connman_dhcp_update(struct connman_iface *iface,
                DBG("broadcast %s", inet_ntoa(ipv4->broadcast));
                DBG("nameserver %s", inet_ntoa(ipv4->nameserver));
 
+               ipv4->method = CONNMAN_IPV4_METHOD_DHCP;
+
                if (iface->driver->set_ipv4) {
                        iface->driver->set_ipv4(iface, ipv4);
                        iface->ipv4 = *ipv4;