summaryrefslogtreecommitdiffstats
path: root/usr.bin/sockstat
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-03-15 20:46:35 +0000
committerdes <des@FreeBSD.org>2001-03-15 20:46:35 +0000
commit3bd182ef546ef14b9fb008ad1f3016d2996296ce (patch)
tree89fad22f64b8169f62bfe7087218253c974d62f3 /usr.bin/sockstat
parentcd8d72036779073e9a559040e5b29558621cdc99 (diff)
downloadFreeBSD-src-3bd182ef546ef14b9fb008ad1f3016d2996296ce.zip
FreeBSD-src-3bd182ef546ef14b9fb008ad1f3016d2996296ce.tar.gz
Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.
Diffstat (limited to 'usr.bin/sockstat')
-rw-r--r--usr.bin/sockstat/sockstat.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sockstat/sockstat.pl b/usr.bin/sockstat/sockstat.pl
index 5ac1cc9..0f871c5 100644
--- a/usr.bin/sockstat/sockstat.pl
+++ b/usr.bin/sockstat/sockstat.pl
@@ -53,7 +53,7 @@ sub gather() {
if (!defined($pid = open(PIPE, "-|"))) {
die("open(netstat): $!\n");
} elsif ($pid == 0) {
- exec("/usr/bin/netstat", "-Aan");
+ exec("/usr/bin/netstat", "-AanW");
die("exec(netstat): $!\n");
}
while ($line = <PIPE>) {
OpenPOWER on IntegriCloud