freebsd-dev/usr.bin/netstat
Ruslan Ermilov cf5e44f88e First round of netstat(1) cleanup.
Removed the ambiguity in -s, -f, -p and -i flags handling.
Basically, there are four displays (except others):

1.  PCB display.
2.  Protocol statistics display. (-s)
3.  Interface statistics display. (-i)
4.  Per-interface protocol statistics display. (-i -s)

All of the above except 3) can be limited to a particular
protocol family (-f) or a single protocol (-p).

Some examples:

1.  netstat -f inet    -- show PCBs of all INET protocols
2.  netstat -p udp     -- show PCB of UDP protocol only (NEW!)
3.  netstat -s         -- show protocol statistics for all families
4.  netstat -s -f inet -- show INET protocols statistics
5.  netstat -s -p icmp -- show ICMP protocol statistics

This is a work in progress.  Manpage has been fixed slightly,
but is still incomplete.
2001-06-15 18:25:38 +00:00
..
atalk.c remove most of the warnings 2001-06-15 01:53:05 +00:00
if.c First round of netstat(1) cleanup. 2001-06-15 18:25:38 +00:00
inet6.c remove most of the warnings 2001-06-15 01:53:05 +00:00
inet.c remove most of the warnings 2001-06-15 01:53:05 +00:00
ipsec.c remove most of the warnings 2001-06-15 01:53:05 +00:00
ipx.c remove most of the warnings 2001-06-15 01:53:05 +00:00
iso.c remove most of the warnings 2001-06-15 01:53:05 +00:00
main.c First round of netstat(1) cleanup. 2001-06-15 18:25:38 +00:00
Makefile add the option -S for printing port numbers symbolically but addresses 2001-06-15 00:25:44 +00:00
mbuf.c remove most of the warnings 2001-06-15 01:53:05 +00:00
mroute6.c remove most of the warnings 2001-06-15 01:53:05 +00:00
mroute.c remove most of the warnings 2001-06-15 01:53:05 +00:00
netgraph.c remove most of the warnings 2001-06-15 01:53:05 +00:00
netstat.1 First round of netstat(1) cleanup. 2001-06-15 18:25:38 +00:00
netstat.h First round of netstat(1) cleanup. 2001-06-15 18:25:38 +00:00
ns.c remove most of the warnings 2001-06-15 01:53:05 +00:00
route.c Line up `netstat -rl' display. 2001-06-15 18:15:11 +00:00
unix.c remove most of the warnings 2001-06-15 01:53:05 +00:00