Skip to content

Commit ac74551

Browse files
John MichelauWink Saville
authored andcommitted
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
1 parent 32d106e commit ac74551

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmds/dumpstate/dumpstate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static void dumpstate() {
113113
dump_file("NETWORK ROUTES", "/proc/net/route");
114114
dump_file("NETWORK ROUTES IPV6", "/proc/net/ipv6_route");
115115
dump_file("ARP CACHE", "/proc/net/arp");
116-
run_command("IPTABLES", 10, "su", "root", "iptables", "-L", NULL);
117-
run_command("IPTABLE NAT", 10, "su", "root", "iptables", "-t", "nat", "-L", NULL);
116+
run_command("IPTABLES", 10, "su", "root", "iptables", "-L", "-n", NULL);
117+
run_command("IPTABLE NAT", 10, "su", "root", "iptables", "-t", "nat", "-L", "-n", NULL);
118118

119119
run_command("WIFI NETWORKS", 20,
120120
"su", "root", "wpa_cli", "list_networks", NULL);

0 commit comments

Comments
 (0)