OpenBSD CVS

CVS log for src/share/man/man4/bpf.4


[BACK] Up to [local] / src / share / man / man4

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Thu Mar 9 06:01:40 2023 UTC (14 months, 4 weeks ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.44: +16 -2 lines
Diff to previous 1.44 (colored)

document BIOC[SGD]WTIMEOUT

Revision 1.44 / (download) - annotate - [select for diffs], Sun Sep 11 06:38:11 2022 UTC (20 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored)

.Li -> .Vt where appropriate;
from josiah frentsos, tweaked by schwarze

ok schwarze

Revision 1.43 / (download) - annotate - [select for diffs], Wed Sep 30 19:25:40 2020 UTC (3 years, 8 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.42: +12 -3 lines
Diff to previous 1.42 (colored)

Document BPF_RND. Missed part of the xBPF commit (bpf_filter.c -r1.34).

from dlg, ok kn tb jmatthew

Revision 1.42 / (download) - annotate - [select for diffs], Wed Sep 30 15:47:36 2020 UTC (3 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.41: +7 -2 lines
Diff to previous 1.41 (colored)

document EINVAL for denorm timeval in BIOCSRTIMEOUT; ok jmc

Revision 1.41 / (download) - annotate - [select for diffs], Thu Apr 25 18:26:16 2019 UTC (5 years, 1 month ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

reflect recent bpf changes

Revision 1.40 / (download) - annotate - [select for diffs], Wed Apr 3 16:23:20 2019 UTC (5 years, 2 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.39: +19 -2 lines
Diff to previous 1.39 (colored)

document BIOCSRTIMEOUT errors; ok deraadt@ millert@

Revision 1.39 / (download) - annotate - [select for diffs], Mon Mar 18 00:05:53 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.38: +19 -6 lines
Diff to previous 1.38 (colored)

extend BIOCSFILDROP so it can be configured to not capture packets.

BIOCSFILDROP was already able to be used as a quick and dirty
firewall, which is especially useful when you you want to filter
non-ip things. however, capturing the packets you're dropping is a
lot of overhead when you just want to drop stuff. this extends
fildrop so you can tell bpf not to capture the packets it drops.

ok sthen@ mikeb@ claudio@ visa@

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 28 19:07:19 2016 UTC (8 years, 1 month ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.37: +6 -18 lines
Diff to previous 1.37 (colored)

Only one bpf device is required; pointed out by and ok jmc

Revision 1.37 / (download) - annotate - [select for diffs], Thu Mar 10 04:48:27 2016 UTC (8 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

BIOCGDIRFILT is allowed when locked, from Guy Harris

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jan 16 03:07:03 2015 UTC (9 years, 4 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.35: +5 -3 lines
Diff to previous 1.35 (colored)

The BPF paper referenced in the SEE ALSO section was most likely an unpublished
draft.  Replace it with the authors' 1993 Winter USENIX paper, which is a more
authoritative reference on BPF.

ok deraadt@ jmc@ millert@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jan 15 20:37:36 2015 UTC (9 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.34: +6 -3 lines
Diff to previous 1.34 (colored)

Use .An in the AUTHORS section where appropriate;
from Kaspars at Bankovskis dot net

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 21 11:03:32 2014 UTC (10 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.33: +9 -8 lines
Diff to previous 1.33 (colored)

do not abuse .Cd for userland stuff; use .In or .Fd

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jan 21 03:15:45 2014 UTC (10 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.32: +9 -9 lines
Diff to previous 1.32 (colored)

obvious .Pa fixes; found with mandocdb(8)

Revision 1.32 / (download) - annotate - [select for diffs], Wed Aug 14 08:39:29 2013 UTC (10 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.31: +5 -3 lines
Diff to previous 1.31 (colored)

some Bx/Ox conversion;
From: Jan Stary

Revision 1.31 / (download) - annotate - [select for diffs], Fri Apr 9 16:25:21 2010 UTC (14 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.30: +2 -5 lines
Diff to previous 1.30 (colored)

remove SIOCGIFADDR; from natex, documentation/6352;
ok claudio

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 1 18:59:50 2009 UTC (15 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.29: +14 -26 lines
Diff to previous 1.29 (colored)

bpf can handle variable length headers; some wording improvements;
mostly from Guy Harris; ok jmc@

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 31 19:19:49 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

convert to new .Dd format;

Revision 1.28 / (download) - annotate - [select for diffs], Sat Mar 25 23:00:26 2006 UTC (18 years, 2 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.27: +20 -6 lines
Diff to previous 1.27 (colored)

document BIOCGDIRFILT/BIOCSDIRFILT ioctls
sync/sort the list of allowed ioctls under BIOCLOCK too

Revision 1.27 / (download) - annotate - [select for diffs], Thu Nov 3 20:00:18 2005 UTC (18 years, 7 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.26: +9 -9 lines
Diff to previous 1.26 (colored)

re-implement the bpf "filter drop" option that it actually works. the
bpf FILDROP interface exists for about one year but the required
interface to the drivers was missing - so it was useless. this new
approach based on a design by henning@ uses a new mbuf flag to mark
filtered packets and to drop them in the generic network stack input
routines (like ether_input).

for example; after some additional testing, this could be used by
dhclient to filter everything except DHCP packets (track tech@
for a corresponding dhclient diff). the "filter dropped" packets won't
reach the network stack. so it's probably some kind of a very basic
application layer packet filter ;).

ok canacar@, discussed with henning@ and others

Revision 1.26 / (download) - annotate - [select for diffs], Thu Oct 13 11:59:49 2005 UTC (18 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.25: +9 -9 lines
Diff to previous 1.25 (colored)

comment out the "filter drop" option because it has never been fully
implemented and is not useable at all.

ok henning@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 15 18:15:30 2005 UTC (19 years, 1 month ago) by jaredy
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.24: +72 -31 lines
Diff to previous 1.24 (colored)

- sync to reality w.r.t. available ioctls and their arguments
- tweak layout of ioctl section
- other minor (mdoc, punctuation) fixes

ok jmc

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 8 00:23:05 2005 UTC (19 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

new sentence, new line;

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 7 16:28:38 2005 UTC (19 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.22: +39 -1 lines
Diff to previous 1.22 (colored)

add support for BIOCGDLTLIST and BIOCSDLT, see bpf(4)

ok canacar@, fgsch@, tested by some other people

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 31 17:06:37 2004 UTC (20 years ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.21: +7 -6 lines
Diff to previous 1.21 (colored)

document cloning of bpf devices. no need to change kernel config to
add new bpf devices anymore. ok jmc, makrus, grange, deraadt.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 21 19:47:59 2004 UTC (20 years, 2 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Homogeneize config lines for pseudo-devices, and do not put fixed values.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 13 22:50:48 2004 UTC (20 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

.DV -> .Dv

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 22 18:42:40 2003 UTC (20 years, 7 months ago) by canacar
Branch: MAIN
Changes since 1.18: +82 -6 lines
Diff to previous 1.18 (colored)

Add locking and write filtering to bpf descriptors.
Locking prevents dangerous ioctls such as changing the
interface and sending signals to be executed by an
unprivileged process. A filter can also be applied
to packets injected through a bpf descriptor.

These features allow programs using bpf descriptors to
safely drop/seperate privileges.

ok frantzen@ henning@ mcbride@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 9 11:45:44 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.17: +27 -47 lines
Diff to previous 1.17 (colored)

- much simpler macros
- add missing .Sm off
- remove extra .Pp's
- sort postcript formatting problem
- fix lists

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 23 21:19:52 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

better wording of FIONBIO behaviour;
work done by Otto Moerbeek.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jun 20 20:55:16 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.15: +11 -7 lines
Diff to previous 1.15 (colored)

correct what FIONBIO returns;
closes PR 2696;

work done by Otto Moerbeek.

also sorted the .Rs/.Re section.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 6 10:29:41 2003 UTC (21 years ago) by jmc
Branch: MAIN
Changes since 1.14: +9 -10 lines
Diff to previous 1.14 (colored)

- section reorder
- some macro fixes
- kill whitespace at EOL

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 28 10:40:20 2003 UTC (21 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored)

typos; added white boldface to examples

ok deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 29 23:30:07 2002 UTC (21 years, 11 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

the the

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 5 14:45:53 2001 UTC (22 years, 8 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.11: +7 -6 lines
Diff to previous 1.11 (colored)

Powered by @mantoya:
o) start new sentence on a new line;
o) minor mdoc fixes;
millert@ ok

Tip of the day:   www.mpechismazohist.com

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 2 18:04:35 2001 UTC (22 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +10 -16 lines
Diff to previous 1.10 (colored)

change timeval to bpf_timeval; 32 bit in size, permitting much greater portability

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 23 07:03:52 2001 UTC (22 years, 11 months ago) by pjanzen
Branch: MAIN
Changes since 1.9: +9 -9 lines
Diff to previous 1.9 (colored)

spelling fixes and minor repairs almost entirely from jsyn@nthought.com

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 22 12:15:44 2001 UTC (22 years, 11 months ago) by mpech
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

o) remove unnecessary .Pp;
o) remove unnecessary .Nm args;
o) closes .Bl;
o) .Sh AUTHOR -> .Sh AUTHORS;
o) sort SEE ALSO;
o) better -mdoc style;
o) typos;

aaron@ ok.

Revision 1.8 / (download) - annotate - [select for diffs], Mon May 28 19:51:06 2001 UTC (23 years ago) by dugsong
Branch: MAIN
Changes since 1.7: +9 -1 lines
Diff to previous 1.7 (colored)

add BIOC[GS]HDRCMPLT ioctl for BPF, to disable overwriting of link level source address in forged frames. from NetBSD. art@ok

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 26 05:36:06 2001 UTC (23 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.6: +726 -538 lines
Diff to previous 1.6 (colored)

mdoc'ifying manpages is a really easy way to kill loads of time on the plane.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 29 02:11:08 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
Changes since 1.5: +1 -0 lines
Diff to previous 1.5 (colored)

$OpenBSD$

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 3 21:19:36 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.4: +41 -41 lines
Diff to previous 1.4 (colored)

Remove trailing whitespace.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Sep 5 17:41:48 1998 UTC (25 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

more man page repairs; aaron@ug.cs.dal.ca

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 17 07:59:00 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

fix Xr

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 26 20:18:53 1997 UTC (27 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.1: +10 -10 lines
Diff to previous 1.1 (colored)

fix a bunch of errors

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:44:23 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:44:23 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.