summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Jensen <pauljensen@google.com>2014-04-28 10:25:47 -0400
committerLorenzo Colitti <lorenzo@google.com>2014-05-14 03:48:29 -0700
commit079fd2305ef90d95a1bfdb200e2975e9db86bf43 (patch)
treeb85134c85b220cd26358a89a500ac1ad9e472b82
parent9cacfde96781ab5d18d2021badecf037f15c8f31 (diff)
downloadplatform_external_android-clat-079fd2305ef90d95a1bfdb200e2975e9db86bf43.tar.gz
platform_external_android-clat-079fd2305ef90d95a1bfdb200e2975e9db86bf43.tar.bz2
platform_external_android-clat-079fd2305ef90d95a1bfdb200e2975e9db86bf43.zip
Place clatd ip routing rule into local table rather than main table
as the main table is not used for routing when per-network tables are being used and clatd's rule is for locally destined packets. Change-Id: I243397b57c946f4af4c2439242b90208b01e84f0
-rw-r--r--setroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setroute.c b/setroute.c
index cffee9f..f9dc365 100644
--- a/setroute.c
+++ b/setroute.c
@@ -61,7 +61,7 @@ int if_route(const char *ifname, int family, const void *destination, int prefix
memset(&rt, 0, sizeof(rt));
rt.rtm_family = family;
- rt.rtm_table = RT_TABLE_MAIN;
+ rt.rtm_table = RT_TABLE_LOCAL;
rt.rtm_dst_len = prefixlen;
switch(change_type) {
case ROUTE_DELETE: