cvs commit: src/sys/net bpf.h src/sys/sys mbuf.h
Mike Silbersack
silby at FreeBSD.org
Sun Oct 19 15:33:42 PDT 2003
silby 2003/10/19 15:33:41 PDT
FreeBSD src repository
Modified files:
sys/net bpf.h
sys/sys mbuf.h
Log:
Add a new macro M_ASSERTVALID which ensures that the mbuf in question
is non-free. (More checks can/should be added in the future.)
Use M_ASSERTVALID in BPF_MTAP so that we catch when freed mbufs are
passed in, even if no bpf listeners are active.
Inspired by a bug in if_dc caught by Kenjiro Cho.
Revision Changes Path
1.29 +1 -0 src/sys/net/bpf.h
1.124 +7 -0 src/sys/sys/mbuf.h
More information about the cvs-src
mailing list