make_ip_del.pl: Arithmetic on 64-bit systems.

This commit is contained in:
Mats Erik Andersson
2011-11-29 13:11:55 +01:00
parent 4088071c2f
commit 77d5ea7a6f
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2011-11-29 Mats Erik Andersson <gnu@gisladisker.se>
* whois/make_ip_del.pl: Compute netmasks correctly
also with 64-bit arithmetic.
2011-11-26 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh: Return skip code if INET port is already in use.

View File

@@ -29,7 +29,7 @@ while (<>) {
my $m=$2; my $s=$3;
my ($i1, $i2, $i3, $i4)=split(/\./, $1);
print "{ ".(($i1<<24)+($i2<<16)+($i3<<8)+$i4)."UL, ".
(~(0xffffffff>>$m))."UL, \"";
(0xffffffff^(0xffffffff>>$m))."UL, \"";
if ($s =~ /\./) {
print "$s";
} else {