algorithm to find IPv4 networks in CIDR notation between two IPv4 addresses
问题 I would like to find out all the IPv4 networks in CIDR notation between those two networks: 10.11.3.64-10.11.3.127 10.11.52.0-10.11.52.255 IPv4 networks should have as short subnet-mask as possible. It's fairly easy to convert 10.11.3.127 into binary, add 1 and convert back to decimal in order to get the first address of the network. Then convert 10.11.52.0 into binary, subtract 1 and convert back to decimal in order to get the last address of the network. However, any suggestions which