Date: Sun, 19 Oct 2003 15:33:41 -0700 (PDT) From: Mike Silbersack <silby@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net bpf.h src/sys/sys mbuf.h Message-ID: <200310192233.h9JMXfhw081758@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310192233.h9JMXfhw081758>
