summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-08-05 23:05:15 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-05 23:05:15 (GMT)
commitbf1c5529f9762d2d870419914a15b14b02fc0d9b (patch)
treebeec9526f0eebbb015b7c3644f346f873c54ba07
parentcd388f18d9b315aa64843af42b163404d2ae81b4 (diff)
downloadconnman-bf1c5529f9762d2d870419914a15b14b02fc0d9b.zip
connman-bf1c5529f9762d2d870419914a15b14b02fc0d9b.tar.gz
connman-bf1c5529f9762d2d870419914a15b14b02fc0d9b.tar.bz2
Export IPv4 PAC
Export the DHCP fetched PAC through the service properties.
-rw-r--r--src/ipv4.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ipv4.c b/src/ipv4.c
index 1267e5a..7f18675 100644
--- a/src/ipv4.c
+++ b/src/ipv4.c
@@ -169,7 +169,7 @@ static int ipv4_probe(struct connman_element *element)
struct connman_element *connection;
struct connman_ipv4 ipv4;
const char *address = NULL, *netmask = NULL, *broadcast = NULL;
- const char *nameserver = NULL;
+ const char *nameserver = NULL, *pac = NULL;
char *timeserver = NULL;
DBG("element %p name %s", element, element->name);
@@ -185,6 +185,8 @@ static int ipv4_probe(struct connman_element *element)
CONNMAN_PROPERTY_ID_IPV4_NAMESERVER, &nameserver);
connman_element_get_value(element,
CONNMAN_PROPERTY_ID_IPV4_TIMESERVER, &timeserver);
+ connman_element_get_value(element,
+ CONNMAN_PROPERTY_ID_IPV4_PAC, &pac);
DBG("address %s", address);
DBG("netmask %s", netmask);
@@ -206,6 +208,9 @@ static int ipv4_probe(struct connman_element *element)
service = __connman_element_get_service(element);
+ if (pac != NULL)
+ __connman_service_set_proxy_autoconfig(service, pac);
+
if (nameserver != NULL)
__connman_service_append_nameserver(service, nameserver);