freebsd-skq/usr.bin/netstat
ru b0d7725e6d Fixed bugs from revision 1.27. Specifically:
- Restore the ability to look up network names in the networks(5)
  database by passing getnetbyaddr(3) shifted network numbers,
  but without duplicating the old bug that was fixed in 1.27 (we
  now only shift netnums with standard netmasks).  For example:

Before:

$ netstat -r
[...]
127.0.1/24         localhost          UGSc        0        0    lo0
127.0.2/24         localhost          UGSc        0        0    lo0

After:

$ netstat -r
[...]
subnet1/24         localhost          UGSc        0        0    lo0
subnet2/24         localhost          UGSc        0        0    lo0

- Only try to lookup with the forged netmask if the mask was not
  explicitly specified, like it was before 1.27.  For example:

Before:

$ netstat -r
net-44.ampr.org/25 localhost          UGSc        0        0    lo0
net-44.ampr.org/25 localhost          UGSc        0        0    lo0

After:

44.108.2/25        localhost          UGSc        0        0    lo0
44.108.2.128/25    localhost          UGSc        0        0    lo0

- Make sure to null-terminate the resulting string.

MFC after:	1 week
2001-10-11 14:30:42 +00:00
..
atalk.c Don't misuse the return from snprintf. 2001-08-20 11:58:05 +00:00
if.c The previous change also disaligned lines with AF_IPX and AF_NS 2001-10-09 08:33:50 +00:00
inet6.c Deprecate the -l option in favour of more natural -W. 2001-09-07 12:00:50 +00:00
inet.c Don't print stray socket addresses (-A) with the listen queue display (-L). 2001-09-07 11:06:28 +00:00
ipsec.c Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
ipx.c remove warnings 2001-06-15 23:55:45 +00:00
iso.c remove warnings 2001-06-15 23:55:45 +00:00
main.c Implement the ``-f address_family'' filter for -i. 2001-09-11 17:14:33 +00:00
Makefile add the option -S for printing port numbers symbolically but addresses 2001-06-15 00:25:44 +00:00
mbuf.c Re-enable mbtypes statistics in the mbuf allocator. I disabled these 2001-09-30 01:58:39 +00:00
mroute6.c If -s -s is specified, don't show zero multicast routing statistics. 2001-09-07 12:59:30 +00:00
mroute.c If -s -s is specified, don't show zero multicast routing statistics. 2001-09-07 12:59:30 +00:00
netgraph.c remove warnings 2001-06-15 23:55:45 +00:00
netstat.1 Implement the ``-f address_family'' filter for -i. 2001-09-11 17:14:33 +00:00
netstat.h Deprecate the -l option in favour of more natural -W. 2001-09-07 12:00:50 +00:00
ns.c remove warnings 2001-06-15 23:55:45 +00:00
route.c Fixed bugs from revision 1.27. Specifically: 2001-10-11 14:30:42 +00:00
unix.c remove K&R support 2001-06-15 23:35:13 +00:00