Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys
Module Name: src
Committed By: pgoyette
Date: Tue Jul 19 02:47:45 UTC 2016
Modified Files:
src/sys/net: bpf.c
src/sys/rump/dev/lib/libbpf: bpf_component.c
Log Message:
Fix regression introduced in tests/net/bpf and tests/net/bpfilter
The rump code needs to call devsw_attach() in order to assign a dev_major
for bpf; it then uses this to create rumps /dev/bpf node. Unfortunately,
this leaves the devsw attached, so when the bpf module tries to initialize
itself, it gets an EEXIST error and fails.
So, once rump has figured what the dev_major should be, call devsw_detach()
to remove the devsw. Then, when the module initialization code calls
devsw_attach() it will succeed.
To generate a diff of this commit:
cvs rdiff -u -r1.202 -r1.203 src/sys/net/bpf.c
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/dev/lib/libbpf/bpf_component.c
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