| 1 | #=============================================================================== | ||||||||||||||||||||
| 2 | # PODNAME: Net::IP::Identifier::Plugin::VPLS | ||||||||||||||||||||
| 3 | # ABSTRACT: identify VPLS/Krypt (AS45652, AS4213, AS35908) owned IP addresses | ||||||||||||||||||||
| 4 | # | ||||||||||||||||||||
| 5 | # AUTHOR: Reid Augustin (REID) | ||||||||||||||||||||
| 6 | # EMAIL: reid@hellosix.com | ||||||||||||||||||||
| 7 | # CREATED: Sun Oct 12 19:32:46 PDT 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 | #_ENTITY_REGEX_ vpls|krypt | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | package Net::IP::Identifier::Plugin::VPLS; | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 1 | ▶ | use Role::Tiny::With; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 19 | 1 | with qw( Net::IP::Identifier_Role ); | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 1 | our $VERSION = '0.111'; # VERSION | |||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 1 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
Pod
documented
| |||||||||||||||||||||
| 24 | 1 | my ($class, %opts) = @_; | |||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 1 | my $self = {}; | |||||||||||||||||||
| 27 | 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
| |||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | # List of known VPLS/Krypt (AS45652, AS4213, AS35908) IP blocks as of May 2015 | ||||||||||||||||||||
| 30 | 1 | $self->ips( | |||||||||||||||||||
| 31 | # 24 Network Blocks | ||||||||||||||||||||
| 32 | '23.91.192.0/19', | ||||||||||||||||||||
| 33 | '23.251.0.0/19', | ||||||||||||||||||||
| 34 | '43.252.120.0/22', | ||||||||||||||||||||
| 35 | '66.186.32.0/19', | ||||||||||||||||||||
| 36 | '67.198.128.0/17', | ||||||||||||||||||||
| 37 | '67.229.0.0/16', | ||||||||||||||||||||
| 38 | '74.222.128.0/18', | ||||||||||||||||||||
| 39 | '96.62.0.0/16', | ||||||||||||||||||||
| 40 | '98.126.0.0/16', | ||||||||||||||||||||
| 41 | '100.43.128.0/18', | ||||||||||||||||||||
| 42 | '103.233.80.0/22', | ||||||||||||||||||||
| 43 | '104.200.192.0/19', | ||||||||||||||||||||
| 44 | '107.6.192.0/18', | ||||||||||||||||||||
| 45 | '110.34.139.0/24', | ||||||||||||||||||||
| 46 | '110.34.220.0/22', | ||||||||||||||||||||
| 47 | '173.214.0.0/17', | ||||||||||||||||||||
| 48 | '174.139.0.0/16', | ||||||||||||||||||||
| 49 | '184.75.176.0/20', | ||||||||||||||||||||
| 50 | '184.83.0.0/16', | ||||||||||||||||||||
| 51 | '184.164.192.0/19', | ||||||||||||||||||||
| 52 | '192.174.96.0/19', | ||||||||||||||||||||
| 53 | '198.61.96.0/19', | ||||||||||||||||||||
| 54 | '209.11.240.0/20', | ||||||||||||||||||||
| 55 | '2607:f180::/31', | ||||||||||||||||||||
| 56 | ); | ||||||||||||||||||||
| 57 | 1 | return $self; | |||||||||||||||||||
| 58 | } | ||||||||||||||||||||
| 59 | |||||||||||||||||||||
| 60 | 1 | ▶ | sub name { | ||||||||||||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 61 | 1 | return 'VPLS'; | |||||||||||||||||||
| 62 | } | ||||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | 1 | 1; | |||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | __END__ | ||||||||||||||||||||