From ba6ab73cea264da3e4f119e5b2bd7fc4c05f6410 Mon Sep 17 00:00:00 2001 From: csjp Date: Wed, 7 Sep 2005 17:35:16 +0000 Subject: 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. --- usr.bin/netstat/netstat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin/netstat/netstat.h') diff --git a/usr.bin/netstat/netstat.h b/usr.bin/netstat/netstat.h index 5bc3a60..a2c3687 100644 --- a/usr.bin/netstat/netstat.h +++ b/usr.bin/netstat/netstat.h @@ -154,3 +154,4 @@ void tp_stats(caddr_t, caddr_t); void ifmalist_dump(void); void mroutepr(u_long, u_long); void mrt_stats(u_long); +void bpf_stats(char *); -- cgit v1.1