Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: Rui Paulo <email@example.com>
Date: 08/04/2005 19:30:47
Module Name: src
Committed By: rpaulo
Date: Thu Aug 4 19:30:47 UTC 2005
src/sys/net: bpf.c bpf.h bpfdesc.h
Implemented the kernel part of BPF statistics and BPF peers, net.bpf.stats
and net.bpf.peers sysctls respectively.
A new structure was added to describe the external (user viewable)
representation of a BPF file; a new entry was added to the bpf_d
structure to store the PID of the calling process; a simple_lock was added
to protect the insert/removal from the net.bpf.peers sysctl handler.
This idea came from FreeBSD (Christian S.J. Peron) but while it is
implemented with sysctl's it differs a bit.
Reviewed by: christos@ and atatat@ (who gave me the tip for the net.bpf.peers
sysctl helper function).
To generate a diff of this commit:
cvs rdiff -r1.109 -r1.110 src/sys/net/bpf.c
cvs rdiff -r1.42 -r1.43 src/sys/net/bpf.h
cvs rdiff -r1.22 -r1.23 src/sys/net/bpfdesc.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.