line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Device::CableModem::Zoom5341; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
214463
|
use strict; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
302
|
|
4
|
7
|
|
|
7
|
|
41
|
use warnings; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
1216
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.10'; |
7
|
|
|
|
|
|
|
our @ISA = qw(); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# We'll do this OO |
11
|
|
|
|
|
|
|
sub new |
12
|
|
|
|
|
|
|
{ |
13
|
5
|
|
|
5
|
0
|
73
|
my ($class, %parameters) = @_; |
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
|
|
119
|
my $self = { |
16
|
|
|
|
|
|
|
# Config |
17
|
|
|
|
|
|
|
modem_addr => '192.168.100.1', |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Runtime data |
20
|
|
|
|
|
|
|
conn_html => undef, |
21
|
|
|
|
|
|
|
conn_stats => undef, |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Overrides |
24
|
|
|
|
|
|
|
%parameters, |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
5
|
|
|
|
|
17
|
bless $self, $class; |
29
|
5
|
|
|
|
|
24
|
return $self; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# Stuff for grabbing the pages from the modem |
34
|
7
|
|
|
7
|
|
4532
|
use Device::CableModem::Zoom5341::Fetch; |
|
7
|
|
|
|
|
23
|
|
|
7
|
|
|
|
|
210
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# Parsing the HTML |
37
|
7
|
|
|
7
|
|
5320
|
use Device::CableModem::Zoom5341::Parse; |
|
7
|
|
|
|
|
19
|
|
|
7
|
|
|
|
|
180
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# Returning stats to the user |
40
|
7
|
|
|
7
|
|
3904
|
use Device::CableModem::Zoom5341::Get; |
|
7
|
|
|
|
|
22
|
|
|
7
|
|
|
|
|
252
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
__END__ |