summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-29 19:00:00 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-29 19:00:00 -0700
commit742468fb58a593e15f7bf0029f31fb3104008819 (patch)
treee9f614b8f41eb6215058743bd4f3fccba1095ab5 /plugins
parent43daaf2b307082e60dbd781bd12bd5762be33a23 (diff)
downloadconnman-742468fb58a593e15f7bf0029f31fb3104008819.tar.gz
connman-742468fb58a593e15f7bf0029f31fb3104008819.tar.bz2
connman-742468fb58a593e15f7bf0029f31fb3104008819.zip
Request proxy auto configuration from DHCP server
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dhcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/dhcp.c b/plugins/dhcp.c
index 73055c95..b07a7113 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, 252);
+ if (option != NULL)
+ connman_dhcp_set_value(dhcp, "PAC", option->data);
+
connman_dhcp_bound(dhcp);
}
@@ -129,6 +133,7 @@ static int dhcp_request(struct connman_dhcp *dhcp)
g_dhcp_client_set_request(dhcp_client, G_DHCP_DOMAIN_NAME);
g_dhcp_client_set_request(dhcp_client, G_DHCP_NTP_SERVER);
g_dhcp_client_set_request(dhcp_client, G_DHCP_ROUTER);
+ g_dhcp_client_set_request(dhcp_client, 252);
g_dhcp_client_register_event(dhcp_client,
G_DHCP_CLIENT_EVENT_LEASE_AVAILABLE,