summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2011-04-28 17:10:23 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2011-04-29 09:43:49 -0700
commit5f2ff42b282e093b61b9e7b07c79a74ea8ce3272 (patch)
treed0593b837f864d5ba2724937edf3e5af23e5a311 /cmds/dumpstate
parentd7f739b13e0336d6dd02df18d16a73636a795c3f (diff)
downloadframeworks_base-5f2ff42b282e093b61b9e7b07c79a74ea8ce3272.zip
frameworks_base-5f2ff42b282e093b61b9e7b07c79a74ea8ce3272.tar.gz
frameworks_base-5f2ff42b282e093b61b9e7b07c79a74ea8ce3272.tar.bz2
Add data to bugreports.
Include IPv6 routes and iptables data. Change-Id: Ie9bca8a935f93933082eef0c45f83a17be76b7ed
Diffstat (limited to 'cmds/dumpstate')
-rw-r--r--cmds/dumpstate/dumpstate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 9e6bcc8..6570078 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -109,7 +109,10 @@ static void dumpstate() {
run_command("NETWORK INTERFACES", 10, "su", "root", "netcfg", NULL);
dump_file("NETWORK ROUTES", "/proc/net/route");
+ dump_file("NETWORK ROUTES IPV6", "/proc/net/ipv6_route");
dump_file("ARP CACHE", "/proc/net/arp");
+ run_command("IPTABLES", 10, "su", "root", "iptables", "-L", NULL);
+ run_command("IPTABLE NAT", 10, "su", "root", "iptables", "-t", "nat", "-L", NULL);
run_command("WIFI NETWORKS", 20,
"su", "root", "wpa_cli", "list_networks", NULL);