Randall Stewart 7f749ed938 Class based addressing went out in the early 90's. Basically
if a entry is not route add -net xxx/bits then we should use
the addr (xxx) to establish the number of bits by looking at
the first non-zero bit. So if we enter
route add -net 10.1.1.0 10.1.3.5
this is the same as doing
route add -net 10.1.1.0/24
Since the 8th bit (zero counting) is set to 1 we set bits
to 32-8.

Users can of course still use the /x to change this behavior
or in cases where the network is in the trailing part
of the address, a "netmask" argument can be supplied to
override what is established from the interpretation of the
address itself. e.g:

route add -net 10.1.1.8 -netmask 0xff00ffff

should overide and place the proper CIDR mask in place.

PR:		131365
MFC after:	1 week
2009-04-06 10:09:20 +00:00
..
2008-11-05 09:28:30 +00:00
2008-12-24 11:12:21 +00:00
2009-03-08 18:02:30 +00:00
2008-09-27 00:09:10 +00:00
2009-04-05 15:24:27 +00:00
2007-07-03 12:46:08 +00:00
2009-01-11 22:36:45 +00:00
2009-01-31 13:48:15 +00:00
2008-12-24 11:12:21 +00:00
2008-09-29 05:31:27 +00:00
2007-09-23 16:06:37 +00:00
2009-04-05 22:08:18 +00:00