Bug 11041

Summary: Function IpInSubnet seems to calculate wrong
Product: IPFire Reporter: Alexander Marx <alexander.marx>
Component: ---Assignee: Assigned to nobody - feel free to grab it and work on it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: - Unknown -    
Priority: - Unknown - CC: michael.tremer, peter.mueller
Version: 2   
Hardware: unspecified   
OS: Unspecified   
See Also: https://bugzilla.ipfire.org/show_bug.cgi?id=11393

Description Alexander Marx 2016-02-16 21:59:26 UTC
I was testing if address "1.2.3.4" is within subnet 10.0.0.0/255.0.0.0 . 
Function  IpInSubnet returned TRUE, wich is false.

Maybe 10.0.0.0/255.0.0.0 mutated to 1.0.0.0/255.0.0.0 through the binary conversion.

If i check the address 1.2.3.4 against 11.0.0.0/255.0.0.0 the function returns FALSE as expected.
Comment 1 Michael Tremer 2016-02-18 18:51:42 UTC
Is this happening on x86_64 as well as i586?
Comment 2 Alexander Marx 2016-02-29 11:12:12 UTC
i am not able to test on x86_64
Comment 3 Peter Müller 2018-04-30 20:23:11 UTC
Is this fixed meanwhile?
Comment 4 Michael Tremer 2018-10-15 13:53:10 UTC
I think this is fixed. If not, please re-open.