summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/netstat.h
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-09-07 17:35:16 +0000
committercsjp <csjp@FreeBSD.org>2005-09-07 17:35:16 +0000
commitba6ab73cea264da3e4f119e5b2bd7fc4c05f6410 (patch)
tree7bffa3ca97c18eae80fc0f3ef29a327801cb33e0 /usr.bin/netstat/netstat.h
parentab91f18851fd9344eda8747adf864d11dc291f75 (diff)
downloadFreeBSD-src-ba6ab73cea264da3e4f119e5b2bd7fc4c05f6410.zip
FreeBSD-src-ba6ab73cea264da3e4f119e5b2bd7fc4c05f6410.tar.gz
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.
Diffstat (limited to 'usr.bin/netstat/netstat.h')
-rw-r--r--usr.bin/netstat/netstat.h1
1 files changed, 1 insertions, 0 deletions
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 *);
OpenPOWER on IntegriCloud