Module Name: src
Committed By: martin
Date: Wed Oct 16 09:46:55 UTC 2019
Modified Files:
src/sys/net [netbsd-9]: bpf.c
Log Message:
Pull up following revision(s) (requested by maxv in ticket #335):
sys/net/bpf.c: revision 1.230
sys/net/bpf.c: revision 1.231
Add KASSERT to catch bugs. Something tells me it could easily fire.
-
As I suspected, the KASSERT I added yesterday can fire if we try to process
zero-sized packets. Skip them to prevent a type confusion that can trigger
random page faults later.
To generate a diff of this commit:
cvs rdiff -u -r1.229 -r1.229.2.1 src/sys/net/bpf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.