summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-07 07:58:29 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-07 07:58:29 +0100
commit93a5ff49828eda5435d79f56c954562144fcf88b (patch)
treee67d22026f9aea7638d09f6ff8d75e274ed17c18 /plugins
parentcc27196d76cbf700b81d628e037a9fcb8c043e18 (diff)
downloadconnman-93a5ff49828eda5435d79f56c954562144fcf88b.tar.gz
connman-93a5ff49828eda5435d79f56c954562144fcf88b.tar.bz2
connman-93a5ff49828eda5435d79f56c954562144fcf88b.zip
Add parsing of Domainname, Hostname and Timeserver results
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dhclient.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/dhclient.c b/plugins/dhclient.c
index cb70ef73..6a0530f3 100644
--- a/plugins/dhclient.c
+++ b/plugins/dhclient.c
@@ -301,8 +301,12 @@ static DBusHandlerResult dhclient_filter(DBusConnection *conn,
} else if (g_strcmp0(key, "new_domain_name_servers") == 0) {
connman_dhcp_set_value(task->dhcp, "Nameserver", value);
} else if (g_ascii_strcasecmp(key, "new_domain_name") == 0) {
+ connman_dhcp_set_value(task->dhcp, "Domainname", value);
} else if (g_ascii_strcasecmp(key, "new_domain_search") == 0) {
} else if (g_ascii_strcasecmp(key, "new_host_name") == 0) {
+ connman_dhcp_set_value(task->dhcp, "Hostname", value);
+ } else if (g_ascii_strcasecmp(key, "new_ntp_servers") == 0) {
+ connman_dhcp_set_value(task->dhcp, "Timeserver", value);
}
dbus_message_iter_next(&dict);