Alexandros Couloumbis
-
2010-01-07
According to this thread: https://sourceforge.net/projects/ipaudit/forums/forum/59302/topic/1570947
In the ParseNetRange() function, the constant ~0 is used, but the value of this depends on the processor precision.
The solution is simple. In ParseNetRange(), replace the line
$mask = 0; ($mask = ~0 >> $2) unless($2 > 31);
with this
$mask = 2**(32-$2) - 1;
here is the relative patch