i have some code that i think i can lift from an app i wrote that

a - produces a range of ip's based on ip and mask
b - produces a list of ip subnets based on two masks (as CIDR)

is anyone interested?