dump_subnet() should calculate the first and last addresses, not 0 and
255. Although it's common usage to not use 0 or 255 when your subnet
is larger than /24, it's permitted so you don't necessarily want to omit
them. It might also be nice to omit the net and broadcast addresses on a
/30, for example.