netstat: Fix Recv-Q Send-Q mix-up
Previously, the netstat command showed the value for Recv-Q in the
column for Send-Q and vice versa.
Change-Id: I5bab51beaf01cc67c7eff61dd8cae21799233e7e
diff --git a/netstat.c b/netstat.c
index 9f96675..af483bf 100644
--- a/netstat.c
+++ b/netstat.c
@@ -109,7 +109,7 @@
addr2str(AF_INET, &raddr, rport, rip);
printf("%4s %6d %6d %-22s %-22s %s\n",
- label, txq, rxq, lip, rip,
+ label, rxq, txq, lip, rip,
state2str(state));
}
}
@@ -137,7 +137,7 @@
addr2str(AF_INET6, &raddr6, rport, rip);
printf("%4s %6d %6d %-22s %-22s %s\n",
- label, txq, rxq, lip, rip,
+ label, rxq, txq, lip, rip,
state2str(state));
}
}