opnsense-src/usr.bin/netstat
Bruce M Simpson d092c06c3a Retire most of the classful network behaviour of netstat -r output, for IPv4.
Without -n, we now only print a "network name" without the prefix length
 under the following conditions:
  1) the network address and mask matches a classful network prefix;
  2) getnetbyaddr(3) returns a network name for this network address.

 With -n, we unconditionally print the full unabbreviated CIDR network
 prefix in the form "a.b.c.d/p". 0.0.0.0/0 is still printed as "default".

This change is in preparation for changes such as equal-cost multipath, and
to more generally assist operational deployment of FreeBSD as a modern IPv4
router. There are currently no plans to backport this change.

Discussed on:	freebsd-net
2007-02-14 14:17:01 +00:00
..
atalk.c Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities, 2006-07-28 16:09:19 +00:00
bpf.c Don't shadow globals. 2006-11-27 19:50:50 +00:00
if.c Don't always print a space character in show_stat(), since a space 2006-11-08 15:15:05 +00:00
inet.c Export tcps_rcvmemdrop available in 'struct tcpstat' with netstat(1). 2006-09-20 12:29:12 +00:00
inet6.c Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities, 2006-07-28 16:09:19 +00:00
ipsec.c Don't shadow globals. 2006-11-27 19:50:50 +00:00
ipx.c - Achieve WARNS=3 by using sparse initializers or avoiding initializers at all. 2006-07-28 16:16:40 +00:00
main.c - Achieve WARNS=3 by using sparse initializers or avoiding initializers at all. 2006-07-28 16:16:40 +00:00
Makefile - Achieve WARNS=3 by using sparse initializers or avoiding initializers at all. 2006-07-28 16:16:40 +00:00
mbuf.c Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities, 2006-07-28 16:09:19 +00:00
mcast.c Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities, 2006-07-28 16:09:19 +00:00
mroute.c Nits. 2006-09-29 16:16:41 +00:00
mroute6.c Nits. 2006-09-29 16:16:41 +00:00
netgraph.c - Achieve WARNS=3 by using sparse initializers or avoiding initializers at all. 2006-07-28 16:16:40 +00:00
netstat.1 Markup fixes. 2006-09-29 15:20:48 +00:00
netstat.h Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities, 2006-07-28 16:09:19 +00:00
pfkey.c Don't shadow globals. 2006-11-27 19:50:50 +00:00
route.c Retire most of the classful network behaviour of netstat -r output, for IPv4. 2007-02-14 14:17:01 +00:00
unix.c Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities, 2006-07-28 16:09:19 +00:00