/usr/lib/x86_64-linux-gnu/perl5/5.22/auto/NetAddr/IP/nprefix.al is in libnetaddr-ip-perl 4.078+dfsg-1build1.
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 719 "blib/lib/NetAddr/IP.pm (autosplit into blib/lib/auto/NetAddr/IP/nprefix.al)"
# only applicable to ipV4
sub nprefix($) {
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]->last->addr);
return do_prefix $mask, \@faddr, \@laddr;
}
# end of NetAddr::IP::nprefix
1;
|