Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Aug 2005 14:45:37 +0000
From:      Darren Reed <darrenr@hub.freebsd.org>
To:        "Christian S.J. Peron" <csjp@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net bpf.c bpfdesc.h
Message-ID:  <20050807144537.GB93712@hub.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:
>           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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050807144537.GB93712>