Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/net
Module Name: src
Committed By: rpaulo
Date: Thu Aug 4 19:30:47 UTC 2005
Modified Files:
src/sys/net: bpf.c bpf.h bpfdesc.h
Log Message:
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.
Home |
Main Index |
Thread Index |
Old Index