summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-03-14 17:28:58 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-03-19 13:09:15 +0200
commitf791aade7da5f992ad3bc4626c274ec28ab426d6 (patch)
tree9eee9307ed8f9d88c0b256d02b54ea4a3f4eecaa /src/connection.c
parent2fafb4669a33f5c7700babdd55bfd2f0c26dde90 (diff)
downloadconnman-f791aade7da5f992ad3bc4626c274ec28ab426d6.tar.gz
connman-f791aade7da5f992ad3bc4626c274ec28ab426d6.tar.bz2
connman-f791aade7da5f992ad3bc4626c274ec28ab426d6.zip
connection: Remove obsolete routes for VPN
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/connection.c b/src/connection.c
index c7159fed..c4c86438 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -702,9 +702,6 @@ int __connman_connection_gateway_add(struct connman_service *service,
if (type == CONNMAN_IPCONFIG_TYPE_IPV4 &&
new_gateway->ipv4_gateway != NULL &&
new_gateway->ipv4_gateway->vpn == TRUE) {
- connman_inet_add_host_route(active_gateway->index,
- new_gateway->ipv4_gateway->gateway,
- active_gateway->ipv4_gateway->gateway);
connman_inet_clear_gateway_address(active_gateway->index,
active_gateway->ipv4_gateway->gateway);
}
@@ -712,9 +709,6 @@ int __connman_connection_gateway_add(struct connman_service *service,
if (type == CONNMAN_IPCONFIG_TYPE_IPV6 &&
new_gateway->ipv6_gateway != NULL &&
new_gateway->ipv6_gateway->vpn == TRUE) {
- connman_inet_add_ipv6_host_route(active_gateway->index,
- new_gateway->ipv6_gateway->gateway,
- active_gateway->ipv6_gateway->gateway);
connman_inet_clear_ipv6_gateway_address(active_gateway->index,
active_gateway->ipv6_gateway->gateway);
}