summaryrefslogtreecommitdiffstats
path: root/clatd.c
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2013-03-13 12:26:35 +0900
committerLorenzo Colitti <lorenzo@google.com>2013-03-19 16:45:20 +0900
commit41e758e33e6c3b43f363591d4113dea54a4330d9 (patch)
treedae35738b416159cac050950ad4360fbee5543d3 /clatd.c
parentf2d2abde321c3b2d35edc2436be83611a75c576e (diff)
downloadplatform_external_android-clat-41e758e33e6c3b43f363591d4113dea54a4330d9.tar.gz
platform_external_android-clat-41e758e33e6c3b43f363591d4113dea54a4330d9.tar.bz2
platform_external_android-clat-41e758e33e6c3b43f363591d4113dea54a4330d9.zip
Don't add the IPv4 default route in clatd.
The IPv4 default route is now added by ConnectivityService because the stacked LinkProperties object contains it. Bug: 8276725 Change-Id: I6513bfa4df29b8663cefd30ed0bae1a80b63447c
Diffstat (limited to 'clatd.c')
-rw-r--r--clatd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/clatd.c b/clatd.c
index f826d46..ea8363c 100644
--- a/clatd.c
+++ b/clatd.c
@@ -213,13 +213,6 @@ void configure_tun_ip(const struct tun_data *tunnel) {
}
configure_tun_ipv6(tunnel);
-
- /* setup default ipv4 route */
- status = if_route(tunnel->device4, AF_INET, &default_4, 0, NULL, 1, 0, ROUTE_REPLACE);
- if(status < 0) {
- logmsg(ANDROID_LOG_FATAL,"configure_tun_ip/if_route failed: %s",strerror(-status));
- exit(1);
- }
}
/* function: drop_root