summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc/stdio/test-perror.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2009-04-06 10:09:20 +0000
committerrrs <rrs@FreeBSD.org>2009-04-06 10:09:20 +0000
commit75afcd06774489bf41511a140c131797f60eef87 (patch)
tree303d220f6f167872ccaa266f398aaf5b320c2f3b /tools/regression/lib/libc/stdio/test-perror.c
parentd5854485ac15ebf50516e5e04f54c0fa6c9cd281 (diff)
downloadFreeBSD-src-75afcd06774489bf41511a140c131797f60eef87.zip
FreeBSD-src-75afcd06774489bf41511a140c131797f60eef87.tar.gz
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
Diffstat (limited to 'tools/regression/lib/libc/stdio/test-perror.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud