projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed6abc4
)
Add support for handling DHCP timerserver values from DHCP
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 2 Oct 2010 05:25:56 +0000
(07:25 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 2 Oct 2010 05:25:56 +0000
(07:25 +0200)
plugins/dhcp.c
patch
|
blob
|
history
diff --git
a/plugins/dhcp.c
b/plugins/dhcp.c
index
75b0ea1
..
73c975d
100644
(file)
--- a/
plugins/dhcp.c
+++ b/
plugins/dhcp.c
@@
-100,6
+100,10
@@
static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)
if (option != NULL)
connman_dhcp_set_value(dhcp, "Hostname", option->data);
+ option = g_dhcp_client_get_option(dhcp_client, G_DHCP_NTP_SERVER);
+ if (option != NULL)
+ connman_dhcp_set_value(dhcp, "Timeserver", option->data);
+
option = g_dhcp_client_get_option(dhcp_client, 252);
if (option != NULL)
connman_dhcp_set_value(dhcp, "PAC", option->data);