In network-functions.pl the function ip_address_in_network() performs an incorrect check. It converts the address, network start and network end addresses into binary, but then performs a textual comparison of these values. This seems to usually work, but fails for some addresses, for example for the network 0.0.0.0/8. Probably this is due to this value having a special meaning in unicode. Patch to follow.
(In reply to Tim from comment #0) > Patch to follow. Could you please extend the testsuite in that file to check for this?
I've just submitted V2, which corrects the original patch, corrects another bug in network2bin() and extends the testsuite as requested. Note that the testsuite already failed on the network membership test. https://patchwork.ipfire.org/patch/2658/
What is the other bug? Can we split that into a separate ticket?
I am pretty sure this solves #11235. We definitely need this patch.
Next attempt to _finally_ getting this resolved: https://patchwork.ipfire.org/project/ipfire/list/?series=1426
https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=6386584baa5669755ebae9507a50ef71321b47aa https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=cc9eb2d30609f18f06b53b838efcd3c7326693f4
https://blog.ipfire.org/post/ipfire-2-25-core-update-148-is-available-for-testing
*** Bug 11235 has been marked as a duplicate of this bug. ***
*** Bug 11278 has been marked as a duplicate of this bug. ***
https://blog.ipfire.org/post/ipfire-2-25-core-update-148-released