Bug 11041 - Function IpInSubnet seems to calculate wrong
Summary: Function IpInSubnet seems to calculate wrong
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: unspecified Unspecified
: - Unknown - - Unknown -
Assignee: Assigned to nobody - feel free to grab it and work on it
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 21:59 UTC by Alexander Marx
Modified: 2018-10-15 13:53 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.