mirror of
https://git.savannah.gnu.org/git/inetutils.git
synced 2026-01-12 00:19:39 +08:00
make_ip_del.pl: Arithmetic on 64-bit systems.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user