diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2011-11-21 14:44:39 -0800 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2011-11-23 09:36:16 -0800 |
commit | e83d181606981bcacd78e55b293fe9fa95b2551d (patch) | |
tree | 93f7a948883320939b50c425ac5c6ecbb3397d7b /cmds | |
parent | 4c6a65bc319feab120d40553d93b160908db2f6d (diff) | |
download | frameworks_base-e83d181606981bcacd78e55b293fe9fa95b2551d.zip frameworks_base-e83d181606981bcacd78e55b293fe9fa95b2551d.tar.gz frameworks_base-e83d181606981bcacd78e55b293fe9fa95b2551d.tar.bz2 |
Fix some policy-base routing issues.
Secondary nets sometimes come up with no routes, but parsing errors end up with null
routes getting added. Trim that away. Also added some dumpstate logging of the secondary
route tables and rules.
bug:5615697
Change-Id: I94c9d888bab958df44891b9117236436e046cc7f
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/dumpstate/dumpstate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index ca66a4e..9eab2fc 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -120,6 +120,12 @@ static void dumpstate() { dump_file("NETWORK ROUTES", "/proc/net/route"); dump_file("NETWORK ROUTES IPV6", "/proc/net/ipv6_route"); + run_command("IP RULES", 10, "ip", "rule", "show", NULL); + run_command("IP RULES v6", 10, "ip", "-6", "rule", "show", NULL); + run_command("ROUTE TABLE 60", 10, "ip", "route", "show", "table", "60", NULL); + run_command("ROUTE TABLE 61 v6", 10, "ip", "-6", "route", "show", "table", "60", NULL); + run_command("ROUTE TABLE 61", 10, "ip", "route", "show", "table", "61", NULL); + run_command("ROUTE TABLE 61 v6", 10, "ip", "-6", "route", "show", "table", "61", NULL); dump_file("ARP CACHE", "/proc/net/arp"); run_command("IPTABLES", 10, "su", "root", "iptables", "-L", "-nvx", NULL); run_command("IP6TABLES", 10, "su", "root", "ip6tables", "-L", "-nvx", NULL); |