line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Hardware::Network::NetBSD; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
15
|
use v5.12.5; |
|
1
|
|
|
|
|
5
|
|
8
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
40
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.2.2'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
17
|
use Rex::Logger; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
13
|
1
|
|
|
1
|
|
40
|
use Rex::Helper::Array; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
48
|
|
14
|
1
|
|
|
1
|
|
10
|
use Rex::Hardware::Network::OpenBSD; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
15
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub get_network_devices { |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD::get_network_devices(); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub get_network_configuration { |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD::get_network_configuration(); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub route { |
29
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD->route(); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub default_gateway { |
33
|
0
|
|
|
0
|
0
|
|
shift; |
34
|
0
|
|
|
|
|
|
return Rex::Hardware::Network::OpenBSD->default_gateway(@_); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub netstat { |
38
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD->netstat(); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |