| Summary: | WARNING messages occur when bpf is used with DEVFS in -current | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Tony Fleisher <takhus> | ||||
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 5.0-CURRENT | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
This fix is not quite correct. I am working on a better solution to this problem. Please ignore the message for now, it is harmless. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. This PR can be closed. State Changed From-To: open->closed Problem resolved. |
The following error repeatedly occurrs under -current anytime a program opened the bpf device: WARNING: Driver mistake: repeat make_dev("bpf0") The problem seems to be caused by make_dev being called in both bpf_clone() and bpfopen() in sys/net/bpf.c Fix: The errors went away when I applied the patch attached below. I am not sure if this is the correct solution, but it does solve the problem. How-To-Repeat: Compile a kernel under -current with bpf and DEVFS. Use any program (such as tcpdump or dhclient) that uses bpf.