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);
$mask = 2**(32-$2) - 1;
here is the relative patch
Log in to post a comment.