summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-14 05:33:15 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-14 05:33:15 +0100
commit526e5e61e4e267e9672f429bbf6c338e46506038 (patch)
treeef7106011b48d3604f15943639f6a7129fd46a7e /src/dhcp.c
parentf3dc9d0ddf44509ca2d9986de149ec5378a1afb2 (diff)
downloadconnman-526e5e61e4e267e9672f429bbf6c338e46506038.tar.gz
connman-526e5e61e4e267e9672f429bbf6c338e46506038.tar.bz2
connman-526e5e61e4e267e9672f429bbf6c338e46506038.zip
Add timeserver value from DHCP configuration
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 68bbc423..decedd54 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -119,6 +119,8 @@ void connman_dhcp_set_value(struct connman_dhcp *dhcp,
} else if (g_strcmp0(key, "Hostname") == 0) {
__connman_utsname_set_hostname(value);
} else if (g_strcmp0(key, "Timeserver") == 0) {
+ g_free(dhcp->element->ipv4.timeserver);
+ dhcp->element->ipv4.timeserver = g_strdup(value);
} else if (g_strcmp0(key, "MTU") == 0) {
}
}