No need to iterate over the set of RFC1918 subnets. The in keyword can handle it.