1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/usr.bin/netstat
Christian S.J. Peron 6b463eed3a Merge bpfstat's functionality into the netstat(1) utility. This adds
a -B option which causes bpf peers to be printed. This option can be
used in conjunction with -I if information about specific interfaces
is desired. This is similar to what NetBSD added to their version of
netstat.

$ netstat -B
  Pid  Netif  Flags      Recv      Drop     Match Sblen Hblen Command
 1137    lo0 p--s--         0         0         0     0     0 tcpdump
  205   sis0 -ifs-l     37331         0         1     0     0 dhclient
$

$ netstat -I lo0 -B
  Pid  Netif  Flags      Recv      Drop     Match Sblen Hblen Command
 1174    lo0 p--s--         0         0         0     0     0 tcpdump
$

-Add bpf.c which stores all the code for retrieving and parsing bpf
 related statistics.
-Modify main.c to add support for the -B option and hook it into the
 program logic.
-Add bpf.c to the build.
-Document this new functionality in the man page and bump the revision
 date.
-Add prototype for bpf_stats function.
2005-09-07 17:35:16 +00:00
..
atalk.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
bpf.c Merge bpfstat's functionality into the netstat(1) utility. This adds 2005-09-07 17:35:16 +00:00
if.c Bail if interface is misspelled instead of falling out into the 2005-08-20 08:34:21 +00:00
inet6.c Use the length modifier 'll' instead of 'q' to print long longs. 2004-07-28 16:03:13 +00:00
inet.c Silence a warning on systems without carp(4). 2005-04-12 08:47:04 +00:00
ipsec.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
ipx.c evise use of queue(9) macros for netipx when used from userspace: 2005-01-02 19:26:06 +00:00
main.c Merge bpfstat's functionality into the netstat(1) utility. This adds 2005-09-07 17:35:16 +00:00
Makefile Merge bpfstat's functionality into the netstat(1) utility. This adds 2005-09-07 17:35:16 +00:00
mbuf.c Since libmemstat(3) now supports its own error management mechanism, 2005-07-24 01:42:42 +00:00
mcast.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
mroute6.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
mroute.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
netgraph.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
netstat.1 Merge bpfstat's functionality into the netstat(1) utility. This adds 2005-09-07 17:35:16 +00:00
netstat.h Merge bpfstat's functionality into the netstat(1) utility. This adds 2005-09-07 17:35:16 +00:00
route.c NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines 2005-05-13 16:31:11 +00:00
unix.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00