Bug #4318
gen_subnet_max returns incorrect result for 32 bit
Start date:
01/27/2015
Due date:
% Done:
100%
Estimated time:
Affected Version:
2.2
Affected Architecture:
i386
Description
gen_subnet_max returns incorrectly on 32 bit 2.2. One example, WoL will always throw in 255.255.255.255 as the broadcast address, because this:
return long2ip(ip2long($ipaddr) | (0xFFFFFFFF >> $bits));
always returns 255.255.255.255 on 32 bit. It works on 64 bit.
Associated revisions
Fix #4318 - gen_subnetv4_max() not working on 32bit
History
#1
Updated by Renato Botelho about 6 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset e69a0cf3a216c8647a6def4eee41ab01319ce90f.
#2
Updated by Renato Botelho about 6 years ago
Applied in changeset 7094c303b7d46c9f7b24c3f1bd4432187832e85c.
Fix #4318 - gen_subnetv4_max() not working on 32bit