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.
Updated by Renato Botelho almost 10 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset e69a0cf3a216c8647a6def4eee41ab01319ce90f.
Updated by Renato Botelho almost 10 years ago
Applied in changeset 7094c303b7d46c9f7b24c3f1bd4432187832e85c.
Actions