Bump __FreeBSD_version to 800043, because of the bpf(4) change.

bpf(4) now uses cdevpriv to distinguish multiple file descriptors, where
it used to be implemented using device cloning. Ports like libpcap
properly detect the change in their configure scripts, but it doesn't
hurt to increase __FreeBSD_version.

While there, change the bpf(4) manual page to refer to /dev/bpf instead
of /dev/bpfN.

Requested by:	mlaier
This commit is contained in:
Ed Schouten 2008-08-13 17:45:06 +00:00
parent 4222358722
commit 8fced8fcdf
2 changed files with 4 additions and 6 deletions

View File

@ -65,9 +65,7 @@ All packets on the network, even those destined for other hosts,
are accessible through this mechanism.
.Pp
The packet filter appears as a character special device,
.Pa /dev/bpf0 ,
.Pa /dev/bpf1 ,
etc.
.Pa /dev/bpf .
After opening the device, the file descriptor must be bound to a
specific network interface with the
.Dv BIOCSETIF
@ -881,8 +879,8 @@ array initializers:
and
.Fn BPF_JUMP opcode operand true_offset false_offset .
.Sh FILES
.Bl -tag -compact -width /dev/bpfXXX
.It Pa /dev/bpf Ns Sy n
.Bl -tag -compact -width /dev/bpf
.It Pa /dev/bpf
the packet filter device
.El
.Sh EXAMPLES

View File

@ -57,7 +57,7 @@
* is created, otherwise 1.
*/
#undef __FreeBSD_version
#define __FreeBSD_version 800042 /* Master, propagated to newvers */
#define __FreeBSD_version 800043 /* Master, propagated to newvers */
#ifndef LOCORE
#include <sys/types.h>