Best way to define subnets

Thanks @apparentlymart I’ll have a look at that module. The log base 2 approach is interesting.