diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-07-29 19:26:37 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-29 19:26:37 -0700 |
commit | aff3c197d176482c40b1726421bbaf1c97c5b5c2 (patch) | |
tree | 81ffede84ea9c9648f0a9a349f49f92b972018ae /src/dhcp.c | |
parent | 82e198ecf9744b199bb2e6c122ff9d0bdbd47702 (diff) | |
download | connman-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |