CIDR calculation from netmask appears to be wrong

Bug #1425427 reported by Mart van de Wege
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IOLib
Invalid
Undecided
Unassigned

Bug Description

Hi,

When calculating CIDR notation from the netmask (e.g. by instantiating an ipv4 network object), the function compute-cidr-prefix-from-netmask appears to return a wrong result. For example:

CL-USER> (sockets::compute-cidr-prefix-from-netmask (sockets:make-netmask :cidr 21))
11

Do I do something wrong, or is this function indeed counting from the wrong direction?

Revision history for this message
Stelian Ionescu (sionescu) wrote :

The name might be a bit off, but it does what it's supposed to

Changed in iolib:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.