#41 dump_subnet calculates net and broadcast addrs incorrectly

1.0
open
Bill Fenner
Back-End (61)
5
2007-10-11
2006-04-15
Bill Fenner
No

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.

Discussion

  • Max Baker
    Max Baker
    2007-10-11

    • assigned_to: nobody --> fenner