summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-03-14 17:28:55 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-03-19 13:08:58 +0200
commit4ceb840875188a407afb79f957cbe1db57bead44 (patch)
tree31c23c5ebcec0b5be87ae26a95de010a7d507a2a /src/connection.c
parent1a406c25cfc5a08905dbadc7913d4b3998fede7c (diff)
downloadconnman-4ceb840875188a407afb79f957cbe1db57bead44.tar.gz
connman-4ceb840875188a407afb79f957cbe1db57bead44.tar.bz2
connman-4ceb840875188a407afb79f957cbe1db57bead44.zip
connection: Do not set host routes in VPN case
These routes are not needed.
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/connection.c b/src/connection.c
index e4e21d6b..888ab062 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -95,11 +95,6 @@ static int del_routes(struct gateway_data *data,
if (do_ipv4 == TRUE && data->ipv4_gateway != NULL) {
if (data->ipv4_gateway->vpn == TRUE) {
- if (data->ipv4_gateway->vpn_phy_index >= 0)
- connman_inet_del_host_route(
- data->ipv4_gateway->vpn_phy_index,
- data->ipv4_gateway->gateway);
-
status4 = connman_inet_clear_gateway_address(
data->index,
data->ipv4_gateway->vpn_ip);
@@ -119,11 +114,6 @@ static int del_routes(struct gateway_data *data,
if (do_ipv6 == TRUE && data->ipv6_gateway != NULL) {
if (data->ipv6_gateway->vpn == TRUE) {
- if (data->ipv6_gateway->vpn_phy_index >= 0)
- connman_inet_del_host_route(
- data->ipv6_gateway->vpn_phy_index,
- data->ipv6_gateway->gateway);
-
status6 = connman_inet_clear_ipv6_gateway_address(
data->index,
data->ipv6_gateway->vpn_ip);
@@ -273,9 +263,6 @@ static void set_default_gateway(struct gateway_data *data,
data->ipv4_gateway->vpn == TRUE) {
connman_inet_set_gateway_address(data->index,
data->ipv4_gateway->vpn_ip);
- connman_inet_add_host_route(data->ipv4_gateway->vpn_phy_index,
- data->ipv4_gateway->vpn_ip,
- data->ipv4_gateway->vpn_phy_ip);
data->ipv4_gateway->active = TRUE;
DBG("set %p index %d vpn %s index %d phy %s",
@@ -292,10 +279,6 @@ static void set_default_gateway(struct gateway_data *data,
data->ipv6_gateway->vpn == TRUE) {
connman_inet_set_ipv6_gateway_address(data->index,
data->ipv6_gateway->vpn_ip);
- connman_inet_add_ipv6_host_route(
- data->ipv6_gateway->vpn_phy_index,
- data->ipv6_gateway->vpn_ip,
- data->ipv6_gateway->vpn_phy_ip);
data->ipv6_gateway->active = TRUE;
DBG("set %p index %d vpn %s index %d phy %s",