diff options
author | ru <ru@FreeBSD.org> | 2006-12-13 06:27:20 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-12-13 06:27:20 +0000 |
commit | d79a6bd71525ef49438b68ab3ed349cd29dae4fc (patch) | |
tree | c5f58cefbbacbc50e16cba1d637fbebfc10a6dd0 /share/man/man9/bpf.9 | |
parent | 1315da38ef063c63141ef76201707daea8140c63 (diff) | |
download | FreeBSD-src-d79a6bd71525ef49438b68ab3ed349cd29dae4fc.zip FreeBSD-src-d79a6bd71525ef49438b68ab3ed349cd29dae4fc.tar.gz |
- Fix prototype of bpf_filter().
- Document what passing it a zero buflen argument means.
Diffstat (limited to 'share/man/man9/bpf.9')
-rw-r--r-- | share/man/man9/bpf.9 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/share/man/man9/bpf.9 b/share/man/man9/bpf.9 index c7c4b1d..5a3ac07 100644 --- a/share/man/man9/bpf.9 +++ b/share/man/man9/bpf.9 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 19, 2004 +.Dd December 13, 2006 .Dt BPF 9 .Os .\" @@ -51,7 +51,7 @@ .Fn bpf_mtap2 "struct bpf_if *bp" "void *data" "u_int dlen" "struct mbuf *m" .Ft u_int .Fo bpf_filter -.Fa "const struct bpf_insn *pc " "u_char *pkt" "u_int *wirelen" "u_int *buflen" +.Fa "const struct bpf_insn *pc " "u_char *pkt" "u_int wirelen" "u_int buflen" .Fc .Ft int .Fn bpf_validate "const struct bpf_insn *fcode" "int flen" @@ -217,6 +217,12 @@ argument is the length of the original packet and .Fa buflen is the amount of data present. +The +.Fa buflen +value of 0 is special; it indicates that the +.Fa pkt +is actually a pointer to an mbuf chain +.Pq Vt "struct mbuf *" . .Pp The .Fn bpf_validate |