Restore support for displaying raw IPv4 sockets and
correct the author's name. Were broken in rev 1.6. Approved by: des
This commit is contained in:
parent
9cd5f4c13b
commit
6159b9dd5b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user