summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-01-09 17:02:17 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-01-09 17:02:17 +0100
commit56cf1fc63cdc201587b0bf7e1e06902acb090d6c (patch)
tree12ac332bb0306230195b0ad17c65c910957630f5 /src/dhcp.c
parent98844b88980e2001ae3d8cd10f99d8ae9ac32b75 (diff)
downloadconnman-56cf1fc63cdc201587b0bf7e1e06902acb090d6c.tar.gz
connman-56cf1fc63cdc201587b0bf7e1e06902acb090d6c.tar.bz2
connman-56cf1fc63cdc201587b0bf7e1e06902acb090d6c.zip
Set the IPv4 method to DHCP in case of DHCP udpates
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index 2fa3f1fe..36132244 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -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;