summaryrefslogtreecommitdiffstats
path: root/usr.bin/sockstat
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-08-30 13:24:01 +0000
committerru <ru@FreeBSD.org>2000-08-30 13:24:01 +0000
commitcea09e03a42e47d0a87fd1f66afadaf9680d59e1 (patch)
treee00dc6c0c0a5001b91129709851378e6530a01be /usr.bin/sockstat
parent579561d0b0e2599848b802a881a83d754a05486f (diff)
downloadFreeBSD-src-cea09e03a42e47d0a87fd1f66afadaf9680d59e1.zip
FreeBSD-src-cea09e03a42e47d0a87fd1f66afadaf9680d59e1.tar.gz
Restore support for displaying raw IPv4 sockets and
correct the author's name. Were broken in rev 1.6. Approved by: des
Diffstat (limited to 'usr.bin/sockstat')
-rw-r--r--usr.bin/sockstat/sockstat.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sockstat/sockstat.pl b/usr.bin/sockstat/sockstat.pl
index cbd66d8..0ec2670 100644
--- a/usr.bin/sockstat/sockstat.pl
+++ b/usr.bin/sockstat/sockstat.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl5
#-
-# Copyright (c) 1999 Dag-Erling Coïdan Smgrav
+# Copyright (c) 1999 Dag-Erling Coïdan Smørgrav
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -56,7 +56,7 @@ open FSTAT, "/usr/bin/fstat |" or die "'fstat' failed: $!\n";
while (<FSTAT>) {
($user, $cmd, $pid, $fd, $inet, $type, $proto, $sock) = split;
chop $fd;
- next unless ($inet =~ m/^internet6?$/) && ($type ne "raw");
+ next unless ($inet eq "internet") || ($inet eq "internet6") && ($type ne "raw");
($proto, $laddr, $faddr) =
($proto{$sock}, $myaddr{$sock}, $hisaddr{$sock});
write STDOUT;
OpenPOWER on IntegriCloud