diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-05-10 23:51:51 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-05-10 23:51:51 +0000 |
commit | 7ce53c2aceb2fba0d40993373f698ec64a55b771 (patch) | |
tree | 4aabc97c6855e66004d9239e0f05857c9a57f340 /share | |
parent | 0fb9212136ff5a2f4429a9066580634fe7b049ed (diff) |
the bpf_mtap functions take const struct mbuf *s now
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/bpf_mtap.9 | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/share/man/man9/bpf_mtap.9 b/share/man/man9/bpf_mtap.9 index 1d31bbf1a8e..d59d3ea466e 100644 --- a/share/man/man9/bpf_mtap.9 +++ b/share/man/man9/bpf_mtap.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bpf_mtap.9,v 1.7 2016/04/08 06:40:07 jmc Exp $ +.\" $OpenBSD: bpf_mtap.9,v 1.8 2016/05/10 23:51:50 dlg Exp $ .\" .\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 8 2016 $ +.Dd $Mdocdate: May 10 2016 $ .Dt BPF_MTAP 9 .Os .Sh NAME @@ -47,20 +47,25 @@ .Ft int .Fn bpf_tap "caddr_t bpf" "u_char *pkt" "u_int pktlen" "u_int direction" .Ft int -.Fn bpf_mtap "caddr_t bpf" "struct mbuf *m" "u_int direction" +.Fn bpf_mtap "caddr_t bpf" "const struct mbuf *m" "u_int direction" .Ft int .Fo bpf_mtap_hdr .Fa "caddr_t bpf" .Fa "caddr_t hdr" .Fa "u_int hdrlen" -.Fa "struct mbuf *m" +.Fa "const struct mbuf *m" .Fa "u_int direction" .Fa "void (*cpfn)(const void *, void *, size_t)" .Fc .Ft int -.Fn bpf_mtap_af "caddr_t bpf" "u_int32_t af" "struct mbuf *m" "u_int direction" +.Fo bpf_mtap_af +.Fa "caddr_t bpf" +.Fa "u_int32_t af" +.Fa "const struct mbuf *m" +.Fa "u_int direction" +.Fc .Ft int -.Fn bpf_mtap_ether "caddr_t bpf" "struct mbuf *m" "u_int direction" +.Fn bpf_mtap_ether "caddr_t bpf" "const struct mbuf *m" "u_int direction" .Sh DESCRIPTION The BPF kernel API provides functions for evaluating BPF instructions against packets, and incoming linkage from device drivers. |