mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Skip sockets with no SCB
This commit is contained in:
parent
7c6d7d5f82
commit
91ef813ce3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67079
@ -104,6 +104,7 @@ sub print_inet($) {
|
||||
printf($inet_fmt, "USER", "COMMAND", "PID", "FD",
|
||||
"PROTO", "LOCAL ADDRESS", "FOREIGN ADDRESS");
|
||||
foreach $fsd (@{$fstat{$af}}) {
|
||||
next unless defined($fsd->[7]);
|
||||
$nsd = $netstat{$fsd->[7]} || $unknown;
|
||||
printf($inet_fmt, $fsd->[0], $fsd->[1], $fsd->[2],
|
||||
substr($fsd->[3], 0, -1),
|
||||
@ -127,6 +128,7 @@ sub print_unix() {
|
||||
}
|
||||
printf($unix_fmt, "USER", "COMMAND", "PID", "FD", "PROTO", "ADDRESS");
|
||||
foreach $fsd (@{$fstat{"local"}}) {
|
||||
next unless defined($fsd->[6]);
|
||||
$nsd = $netstat{$fsd->[6]} || $unknown;
|
||||
printf($unix_fmt, $fsd->[0], $fsd->[1], $fsd->[2],
|
||||
substr($fsd->[3], 0, -1), $fsd->[5],
|
||||
|
Loading…
Reference in New Issue
Block a user