Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/bpf.4
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | ||||
| .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||||
| .\" | .\" | ||||
| .\" This document is derived in part from the enet man page (enet.4) | .\" This document is derived in part from the enet man page (enet.4) | ||||
| .\" distributed with 4.3BSD Unix. | .\" distributed with 4.3BSD Unix. | ||||
| .\" | .\" | ||||
| .\" $FreeBSD$ | .\" $FreeBSD$ | ||||
| .\" | .\" | ||||
| .Dd October 9, 2020 | .Dd July 22, 2021 | ||||
| .Dt BPF 4 | .Dt BPF 4 | ||||
| .Os | .Os | ||||
| .Sh NAME | .Sh NAME | ||||
| .Nm bpf | .Nm bpf | ||||
| .Nd Berkeley Packet Filter | .Nd Berkeley Packet Filter | ||||
| .Sh SYNOPSIS | .Sh SYNOPSIS | ||||
| .Cd device bpf | .Cd device bpf | ||||
| .Sh DESCRIPTION | .Sh DESCRIPTION | ||||
| ▲ Show 20 Lines • Show All 593 Lines • ▼ Show 20 Lines | |||||
| If no data is present, the buffer will remain owned by the kernel. | If no data is present, the buffer will remain owned by the kernel. | ||||
| This allows consumers of zero-copy buffering to implement timeouts and | This allows consumers of zero-copy buffering to implement timeouts and | ||||
| retrieve partially filled buffers. | retrieve partially filled buffers. | ||||
| In order to handle the case where no data is present in the buffer and | In order to handle the case where no data is present in the buffer and | ||||
| therefore ownership is not assigned, the user process must check | therefore ownership is not assigned, the user process must check | ||||
| .Vt bzh_kernel_gen | .Vt bzh_kernel_gen | ||||
| against | against | ||||
| .Vt bzh_user_gen . | .Vt bzh_user_gen . | ||||
| .It Dv BIOCSETVLANPCP | |||||
| Set the VLAN PCP bits to the supplied value. | |||||
| .El | .El | ||||
| .Sh STANDARD IOCTLS | .Sh STANDARD IOCTLS | ||||
| .Nm | .Nm | ||||
| now supports several standard | now supports several standard | ||||
| .Xr ioctl 2 Ns 's | .Xr ioctl 2 Ns 's | ||||
| which allow the user to do async and/or non-blocking I/O to an open | which allow the user to do async and/or non-blocking I/O to an open | ||||
| .I bpf | .I bpf | ||||
| file descriptor. | file descriptor. | ||||
| ▲ Show 20 Lines • Show All 523 Lines • Show Last 20 Lines | |||||