summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-29 19:26:37 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-29 19:26:37 -0700
commitaff3c197d176482c40b1726421bbaf1c97c5b5c2 (patch)
tree81ffede84ea9c9648f0a9a349f49f92b972018ae /src/dhcp.c
parent82e198ecf9744b199bb2e6c122ff9d0bdbd47702 (diff)
downloadconnman-aff3c197d176482c40b1726421bbaf1c97c5b5c2.tar.gz
connman-aff3c197d176482c40b1726421bbaf1c97c5b5c2.tar.bz2
connman-aff3c197d176482c40b1726421bbaf1c97c5b5c2.zip
Update service domain name when connection becomes active
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 6fccc3cb..13ad8bf2 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -126,10 +126,12 @@ void connman_dhcp_set_value(struct connman_dhcp *dhcp,
} else if (g_strcmp0(key, "Domainname") == 0) {
g_free(dhcp->element->domainname);
dhcp->element->domainname = g_strdup(value);
+
__connman_utsname_set_domainname(value);
} else if (g_strcmp0(key, "Hostname") == 0) {
g_free(dhcp->element->hostname);
dhcp->element->hostname = g_strdup(value);
+
__connman_utsname_set_hostname(value);
} else if (g_strcmp0(key, "Timeserver") == 0) {
g_free(dhcp->element->ipv4.timeserver);