connection: Remove obsolete routes for VPN
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 14 Mar 2012 15:28:58 +0000 (17:28 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 19 Mar 2012 11:09:15 +0000 (13:09 +0200)
src/connection.c

index c7159fe..c4c8643 100644 (file)
@@ -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);
        }