summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-07 08:32:39 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-07 08:32:39 +0100
commitdbd30c41c1c066b7ac71037dd07b9bc69acbb10d (patch)
tree416d089116d885529db31903a01a7556e9e1bcf6 /src/dhcp.c
parentff2d4748727b0a188cdc4095ebc6448f1d10f4b2 (diff)
downloadconnman-dbd30c41c1c066b7ac71037dd07b9bc69acbb10d.tar.gz
connman-dbd30c41c1c066b7ac71037dd07b9bc69acbb10d.tar.bz2
connman-dbd30c41c1c066b7ac71037dd07b9bc69acbb10d.zip
Add support for setting hostname and domainname from DHCP
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 95ac4d8c..0c0fc30a 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -115,7 +115,9 @@ void connman_dhcp_set_value(struct connman_dhcp *dhcp,
g_free(dhcp->element->ipv4.nameserver);
dhcp->element->ipv4.nameserver = g_strdup(value);
} else if (g_strcmp0(key, "Domainname") == 0) {
+ __connman_utsname_set_domainname(value);
} else if (g_strcmp0(key, "Hostname") == 0) {
+ __connman_utsname_set_hostname(value);
} else if (g_strcmp0(key, "Timeserver") == 0) {
} else if (g_strcmp0(key, "MTU") == 0) {
}