Subject: Re: CVS commit: src/sys/net
To: Darren Reed <darrenr@netbsd.org>
From: Frank van der Linden <fvdl@netbsd.org>
List: tech-net
Date: 04/15/2004 17:02:51
On Thu, Apr 15, 2004 at 02:56:57PM +0000, Darren Reed wrote:
> Modified Files:
> 	src/sys/net: bpf.c bpf.h bpfdesc.h
> 
> Log Message:
> Add a count of the number of packets that match the bpf filter applied to a
> particule device.  In doing this, make a new the bpf_stat structure with
> members that are u_long rather than u_int, matching the counters in the bpf_d.
> the original bpf_stat is now bpf_stat_old and so to the original ioctl
> is preserved as BIOCGSTATSOLD.

u_long from u_int isn't an improvement on 32bit systems.. You should
explicitly make it uint64_t. Having u_longs in kernel interfaces is
really a bad idea anyway.

- Frank