summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2010-02-03 16:16:40 -0800
committerMarcel Holtmann <marcel@holtmann.org>2010-02-11 05:33:05 +0100
commit648d5be5ee5830b3b056c78b86c34899f411c47c (patch)
treee8aaf715f09185e2e763aba209c6fd616cbe7d1b /src/connection.c
parente78dd7a43a9484882ff4edb3cbd89a0e56f9f63e (diff)
downloadconnman-648d5be5ee5830b3b056c78b86c34899f411c47c.tar.gz
connman-648d5be5ee5830b3b056c78b86c34899f411c47c.tar.bz2
connman-648d5be5ee5830b3b056c78b86c34899f411c47c.zip
Fix VPN issue when setting up host route
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/connection.c b/src/connection.c
index 9279c37c..a46c372d 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -286,8 +286,9 @@ static int connection_probe(struct connman_element *element)
}
if (new_gateway->vpn == TRUE) {
- connman_inet_add_host_route(active_gateway->index,
- active_gateway->gateway);
+ connman_inet_add_host_route_vpn(active_gateway->index,
+ active_gateway->gateway,
+ new_gateway->gateway);
connman_inet_set_gateway_address(new_gateway->index,
new_gateway->gateway);