line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Device::CableModem::Zoom5341J; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
115713
|
use strict; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
258
|
|
4
|
7
|
|
|
7
|
|
29
|
use warnings; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
707
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.00'; |
7
|
|
|
|
|
|
|
our @ISA = qw(); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new |
11
|
|
|
|
|
|
|
{ |
12
|
5
|
|
|
5
|
0
|
53
|
my ($class, %parameters) = @_; |
13
|
|
|
|
|
|
|
|
14
|
5
|
|
|
|
|
34
|
my $self = { |
15
|
|
|
|
|
|
|
# How we get at the modem |
16
|
|
|
|
|
|
|
modem_addr => '192.168.100.1', |
17
|
|
|
|
|
|
|
username => 'admin', |
18
|
|
|
|
|
|
|
password => 'password', |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# Runtime data |
21
|
|
|
|
|
|
|
conn_html => undef, |
22
|
|
|
|
|
|
|
conn_stats => undef, |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# Overrides |
25
|
|
|
|
|
|
|
%parameters, |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
5
|
|
|
|
|
13
|
bless $self, $class; |
30
|
5
|
|
|
|
|
15
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# Stuff for grabbing the pages from the modem |
35
|
7
|
|
|
7
|
|
2482
|
use Device::CableModem::Zoom5341J::Fetch; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
245
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Parsing the HTML |
38
|
7
|
|
|
7
|
|
2837
|
use Device::CableModem::Zoom5341J::Parse; |
|
7
|
|
|
|
|
19
|
|
|
7
|
|
|
|
|
169
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
# Returning stats to the user |
41
|
7
|
|
|
7
|
|
2469
|
use Device::CableModem::Zoom5341J::Get; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
163
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
__END__ |