Add cidr_to_range function to generate a range of IP addresses, excluding the network and broadcast addresses.