GIF87a;
# NOTE: Derived from blib/lib/NetAddr/IP.pm. # Changes made here will be lost when autosplit is run again. # See AutoSplit.pm. package NetAddr::IP; #line 1103 "blib/lib/NetAddr/IP.pm (autosplit into blib/lib/auto/NetAddr/IP/_splitref.al)" # input: $rev, # t/f # $naip, # @bits # list of masks for split # sub _splitref { my $rev = shift; my($plan,$masks) = &_splitplan; # bug report 82719 croak("netmask error: overrange or spurious bits") unless defined $plan; # return undef unless $plan; my $net = $_[0]->network(); return [$net] unless $masks; my $addr = $net->{addr}; my $isV6 = $net->{isv6}; my @plan = $rev ? reverse @$plan : @$plan; # print "plan @plan\n"; # create splits my @ret; while ($_ = shift @plan) { my $mask = $masks->{$_}; push @ret, $net->_new($addr,$mask,$isV6); last unless @plan; $addr = (sub128($addr,$mask))[1]; } return \@ret; } # end of NetAddr::IP::_splitref 1;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
InetBase | Folder | 0755 |
|
|
Util | Folder | 0755 |
|
|
UtilPP | Folder | 0755 |
|
|
.packlist | File | 3.61 KB | 0644 |
|
_compV6.al | File | 1 KB | 0444 |
|
_compact_v6.al | File | 1.01 KB | 0444 |
|
_splitplan.al | File | 2.91 KB | 0444 |
|
_splitref.al | File | 936 B | 0444 |
|
autosplit.ix | File | 388 B | 0444 |
|
canon.al | File | 362 B | 0444 |
|
coalesce.al | File | 1.35 KB | 0444 |
|
compactref.al | File | 1.67 KB | 0444 |
|
do_prefix.al | File | 891 B | 0444 |
|
hostenum.al | File | 329 B | 0444 |
|
mod_version.al | File | 427 B | 0444 |
|
nprefix.al | File | 603 B | 0444 |
|
prefix.al | File | 605 B | 0444 |
|
re.al | File | 1.4 KB | 0444 |
|
re6.al | File | 1.83 KB | 0444 |
|
short.al | File | 500 B | 0444 |
|
wildcard.al | File | 485 B | 0444 |
|