ip4_netmask_to_prefix
Description:
Parameters:
netmask |
an IPv4 netmask in network byte order. Usually the netmask has all leading bits up to the prefix set so that the netmask is identical to having the first prefix bits of the address set. If that is not the case and there are "holes" in the mask, the prefix is determined based on the lowest bit set. |
Returns:
the CIDR prefix represented by the netmask |
Namespace: NM.Utils
Package: libnm