/usr/lib/x86_64-linux-gnu/perl5/5.20/auto/NetAddr/IP/prefix.al is in libnetaddr-ip-perl 4.075+dfsg-1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # 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 697 "blib/lib/NetAddr/IP.pm (autosplit into blib/lib/auto/NetAddr/IP/prefix.al)"
# only applicable to ipV4
sub prefix($) {
return undef if $_[0]->{isv6};
my $mask = (notcontiguous($_[0]->{mask}))[1];
return $_[0]->addr if $mask == 128;
$mask -= 96;
my @faddr = split (/\./, $_[0]->first->addr);
my @laddr = split (/\./, $_[0]->broadcast->addr);
return do_prefix $mask, \@faddr, \@laddr;
}
# end of NetAddr::IP::prefix
1;
|