| 1 | #=============================================================================== | ||||||||||||||||||||
| 2 | # PODNAME: Net::IP::Identifier::Plugin::Sharktech | ||||||||||||||||||||
| 3 | # ABSTRACT: identify Sharktech (AS46844) owned IP addresses | ||||||||||||||||||||
| 4 | # | ||||||||||||||||||||
| 5 | # AUTHOR: Reid Augustin (REID) | ||||||||||||||||||||
| 6 | # EMAIL: reid@hellosix.com | ||||||||||||||||||||
| 7 | # CREATED: Wed Nov 12 09:37:48 PST 2014 | ||||||||||||||||||||
| 8 | #=============================================================================== | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 1 | ▶ | use 5.008; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | package Net::IP::Identifier::Plugin::Sharktech; | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 1 | ▶ | use Role::Tiny::With; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 17 | 1 | with qw( Net::IP::Identifier_Role ); | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 1 | our $VERSION = '0.111'; # VERSION | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 1 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
Pod
documented
| |||||||||||||||||||||
| 22 | 1 | my ($class, %opts) = @_; | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 1 | my $self = {}; | |||||||||||||||||||
| 25 | 1 | ▶ | bless $self, (ref $class || $class); | ||||||||||||||||||
|
Condition33%1/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | # List of known Sharktech (AS46844) IP blocks as of May 2015 | ||||||||||||||||||||
| 28 | 1 | $self->ips( | |||||||||||||||||||
| 29 | # 15 Network Blocks | ||||||||||||||||||||
| 30 | '45.58.128.0/18', | ||||||||||||||||||||
| 31 | '64.32.0.0/19', | ||||||||||||||||||||
| 32 | '67.21.64.0/19', | ||||||||||||||||||||
| 33 | '70.39.64.0/18', | ||||||||||||||||||||
| 34 | '104.37.244.0/22', | ||||||||||||||||||||
| 35 | '104.160.160.0/19', | ||||||||||||||||||||
| 36 | '104.201.64.0/18', | ||||||||||||||||||||
| 37 | '107.167.0.0/19', | ||||||||||||||||||||
| 38 | '170.178.160.0/19', | ||||||||||||||||||||
| 39 | '174.128.224.0/19', | ||||||||||||||||||||
| 40 | '198.148.80.0/20', | ||||||||||||||||||||
| 41 | '199.115.96.0/21', | ||||||||||||||||||||
| 42 | '204.188.192.0/18', | ||||||||||||||||||||
| 43 | '208.98.0.0/18', | ||||||||||||||||||||
| 44 | '2610:150::/32', | ||||||||||||||||||||
| 45 | ); | ||||||||||||||||||||
| 46 | 1 | return $self; | |||||||||||||||||||
| 47 | } | ||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | 1 | ▶ | sub name { | ||||||||||||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 50 | 1 | return 'Sharktech'; | |||||||||||||||||||
| 51 | } | ||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | 1 | 1; | |||||||||||||||||||
| 54 | |||||||||||||||||||||
| 55 | __END__ | ||||||||||||||||||||