Date: Sun, 24 Jul 2005 17:25:08 +0000 From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net bpf.c bpfdesc.h Message-ID: <20050724172508.GA15547@freefall.freebsd.org> In-Reply-To: <200507241721.j6OHLImZ032073@repoman.freebsd.org> References: <200507241721.j6OHLImZ032073@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 24, 2005 at 05:21:18PM +0000, Christian S.J. Peron wrote: > csjp 2005-07-24 17:21:18 UTC > > FreeBSD src repository > > Modified files: > sys/net bpf.c bpfdesc.h > Log: > Introduce new sysctl variable: net.bpf.stats. This sysctl variable can > be used to pass statistics regarding dropped, matched and received > packet counts from the kernel to user-space. While we are here > introduce a new counter for filtered or matched packets. We currently > keep track of packets received or dropped by the bpf device, but not > how many packets actually matched the bpf filter. > I have a userspace program to display these stats: http://people.freebsd.org/~csjp/bpfstat.1122182321.shar An example of the output is: $ bpfstat pid netif flags recv drop match sblen hblen command 10750 rl0 p--s- 260 0 260 2426 0 tcpdump $ I plan to move this into base, but I would like some people to test/review it first. -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050724172508.GA15547>