Actions
Bug #4318
closedgen_subnet_max returns incorrect result for 32 bit
Start date:
01/27/2015
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
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.
Actions