From 51d6f5b29022ef277e932424e5e405f99a3e00ef Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 2 Oct 2010 07:25:56 +0200 Subject: [PATCH] Add support for handling DHCP timerserver values from DHCP --- plugins/dhcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/dhcp.c b/plugins/dhcp.c index 75b0ea18..73c975de 100644 --- 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); -- 2.34.1