summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Michelau <john.michelau@motorola.com> 2011-07-25 22:26:38 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2011-07-25 22:26:38 -0700
commitfada80df08dd0b608eeb9737af413f8df1eb5252 (patch)
tree28689e62765411ac48cf62d3c068aad80295c5a4
parentbfce70342f2cd8c66be48f00adf8aa4dbf8af169 (diff)
parentac74551bb42eb2d6775d994357481113375574e7 (diff)
am ac74551b: Disable name lookups for dumpstate calls to "iptables -L"
* commit 'ac74551bb42eb2d6775d994357481113375574e7': Disable name lookups for dumpstate calls to "iptables -L"
-rw-r--r--cmds/dumpstate/dumpstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 209417bd2b0b..05e40448bad3 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -113,8 +113,8 @@ static void dumpstate() {
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("IPTABLES", 10, "su", "root", "iptables", "-L", "-n", NULL);
+ run_command("IPTABLE NAT", 10, "su", "root", "iptables", "-t", "nat", "-L", "-n", NULL);
run_command("WIFI NETWORKS", 20,
"su", "root", "wpa_cli", "list_networks", NULL);