line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Parse::Netstat::darwin; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
19
|
use 5.010001; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use Exporter 'import'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
191
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
10
|
|
|
|
|
|
|
our $DATE = '2022-12-04'; # DATE |
11
|
|
|
|
|
|
|
our $DIST = 'Parse-Netstat'; # DIST |
12
|
|
|
|
|
|
|
our $VERSION = '0.150'; # VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw(parse_netstat); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our %SPEC; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
require Parse::Netstat::freebsd; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$SPEC{parse_netstat} = do { |
21
|
|
|
|
|
|
|
my $meta = { %{ $Parse::Netstat::freebsd::SPEC{parse_netstat} } }; |
22
|
|
|
|
|
|
|
$meta->{summary} = 'Parse the output of Mac OS X "netstat" command', |
23
|
|
|
|
|
|
|
$meta->{description} = <<'_'; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Netstat can be called with `-n` (show raw IP addresses and port numbers instead |
26
|
|
|
|
|
|
|
of hostnames or port names) or without. It can be called with `-a` (show all |
27
|
|
|
|
|
|
|
listening and non-listening socket) option or without. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
_ |
30
|
|
|
|
|
|
|
$meta; |
31
|
|
|
|
|
|
|
}; |
32
|
|
|
|
|
|
|
sub parse_netstat { |
33
|
4
|
|
|
4
|
1
|
12
|
Parse::Netstat::freebsd::parse_netstat(@_); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
# ABSTRACT: Parse the output of Mac OS X "netstat" command |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |