Ed Schouten 136600fe59 Change bpf(4) to use the cdevpriv API.
Right now the bpf(4) driver uses the cloning API to generate /dev/bpf%u.
When an application such as tcpdump needs a BPF, it opens /dev/bpf0,
/dev/bpf1, etc. until it opens the first available device node. We used
this approach, because our devfs implementation didn't allow
per-descriptor data.

Now that we can, make it use devfs_get_cdevpriv() to obtain the private
data. To remain compatible with the existing implementation, add a
symlink from /dev/bpf0 to /dev/bpf. I've already changed libpcap to
compile with HAVE_CLONING_BPF, which makes it use /dev/bpf. There may be
other applications in the base system (dhclient) that use the loop to
obtain a valid bpf.

Discussed on:	src-committers
Approved by:	csjp
2008-08-13 15:41:21 +00:00
..
2008-08-12 21:31:31 +00:00
2008-08-11 04:54:43 +00:00
2008-08-04 14:42:09 +00:00
2008-08-12 20:19:08 +00:00
2008-08-12 21:45:38 +00:00
2008-08-03 14:11:06 +00:00
Nit
2008-08-09 11:28:57 +00:00
2008-08-13 09:20:52 +00:00
2008-08-10 12:15:36 +00:00
2008-08-12 07:36:56 +00:00