cvs commit: src/sys/net bpf.c bpfdesc.h

Darren Reed darrenr at hub.freebsd.org
Sun Aug 7 14:45:38 GMT 2005


On Sun, Jul 24, 2005 at 05:21:18PM +0000, Christian S.J. Peron wrote:
>           bd_fcount       - Number of packets which matched bpf filter

You might also want to add this field, from NetBSD:

         u_long          bd_ccount;      /* number of packets captured */

Note that a matched packet does not mean it gets captured.

I suppose you could argue that:
fcount - dcount = ccount

In general, I don't care how many packets have matched the filter but
what I do care about is how many get dropped and how many are captured.

I think I talked about this first here:
http://mail-index.netbsd.org/tech-net/2004/04/15/0000.html

but I can't be sure because the "great firewall of china" seems to be
blocking access to it.

Darren


More information about the cvs-src mailing list