cvs commit: src/sys/net bpf.c bpfdesc.h
brooks at one-eyed-alien.net
Mon Jul 25 17:23:01 GMT 2005
On Sun, Jul 24, 2005 at 11:17:45AM -0700, Sam Leffler wrote:
> Christian S.J. Peron wrote:
> >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:
> >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.
> There are numerous little programs like this looking for a common home.
> I suggest you stick your program in the tools area until we can
> resolve where to integrate them. I've wanted to overhaul netstats in a
> manner similar to ifconfig so it's easy to add code like this and/or
> write these as modules that are dynamically loaded (e.g. so vendors can
> distribute add-ons).
Work is underway on cleaning up the libkvm bits of netstat at the moment
so now is not the best time for major surgery. I do agree that a
modular rewrite similar to ifconfig is the way to go.
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050725/d6a074ac/attachment.bin
More information about the cvs-src