summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJohn Michelau <john.michelau@motorola.com>2011-07-25 20:42:50 -0500
committerWink Saville <wink@google.com>2011-07-25 21:53:15 -0700
commitac74551bb42eb2d6775d994357481113375574e7 (patch)
tree2a15aa107873b1a901978ed2db8f1285fa7c6000 /cmds
parent32d106e154d0388ac13774fad3c58ff60ba9ae8f (diff)
downloadframeworks_base-ac74551bb42eb2d6775d994357481113375574e7.zip
frameworks_base-ac74551bb42eb2d6775d994357481113375574e7.tar.gz
frameworks_base-ac74551bb42eb2d6775d994357481113375574e7.tar.bz2
Disable name lookups for dumpstate calls to "iptables -L"
The name lookups are not helpful enough to warrant the large delays they can cause. Change-Id: I8710e76b15b7cf060b7f4f89128ea3249fcdbd0d
Diffstat (limited to 'cmds')
-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 209417b..05e4044 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);