summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author JP Abgrall <jpa@google.com> 2012-05-17 11:06:01 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2012-05-17 11:06:01 -0700
commite91f0a967b15af2a4a1e4ec2af8464dfca3560de (patch)
tree44792bd451d87dd819e260d1109276438c0dc4a7
parent35fb5e3638546d48b47dd8da9a90a1af85c4e4b1 (diff)
parent81f6da5228aeca22894b0277cd2050fccdb7cccb (diff)
am 81f6da52: Merge "dumpstate: collect xtables based iface stats, update iptables info." into jb-dev
* commit '81f6da5228aeca22894b0277cd2050fccdb7cccb': dumpstate: collect xtables based iface stats, update iptables info.
-rw-r--r--cmds/dumpstate/dumpstate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 880f81fef7..2bcda11a5c 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -144,6 +144,7 @@ static void dumpstate() {
dump_file("NETWORK DEV INFO", "/proc/net/dev");
dump_file("QTAGUID NETWORK INTERFACES INFO", "/proc/net/xt_qtaguid/iface_stat_all");
+ dump_file("QTAGUID NETWORK INTERFACES INFO (xt)", "/proc/net/xt_qtaguid/iface_stat_fmt");
dump_file("QTAGUID CTRL INFO", "/proc/net/xt_qtaguid/ctrl");
dump_file("QTAGUID STATS INFO", "/proc/net/xt_qtaguid/stats");
@@ -176,8 +177,10 @@ static void dumpstate() {
dump_file("ARP CACHE", "/proc/net/arp");
run_command("IPTABLES", 10, SU_PATH, "root", "iptables", "-L", "-nvx", NULL);
run_command("IP6TABLES", 10, SU_PATH, "root", "ip6tables", "-L", "-nvx", NULL);
- run_command("IPTABLE NAT", 10, SU_PATH, "root", "iptables", "-t", "nat", "-L", "-n", NULL);
- run_command("IPT6ABLE NAT", 10, SU_PATH, "root", "ip6tables", "-t", "nat", "-L", "-n", NULL);
+ run_command("IPTABLE NAT", 10, SU_PATH, "root", "iptables", "-t", "nat", "-L", "-nvx", NULL);
+ /* no ip6 nat */
+ run_command("IPTABLE RAW", 10, SU_PATH, "root", "iptables", "-t", "raw", "-L", "-nvx", NULL);
+ run_command("IP6TABLE RAW", 10, SU_PATH, "root", "ip6tables", "-t", "raw", "-L", "-nvx", NULL);
run_command("WIFI NETWORKS", 20,
SU_PATH, "root", "wpa_cli", "list_networks", NULL);