summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.h
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-12-02 19:36:05 +0000
committerarchie <archie@FreeBSD.org>1999-12-02 19:36:05 +0000
commit47cb60fd855e46d5db07270ed611c5942ba5b7ed (patch)
tree018a62c7b94ea2e5ca0bbdd522982d2977803a04 /sys/net/bpf.h
parentc97e39268be89e61a5f91f95ef70320e641e1d52 (diff)
downloadFreeBSD-src-47cb60fd855e46d5db07270ed611c5942ba5b7ed.zip
FreeBSD-src-47cb60fd855e46d5db07270ed611c5942ba5b7ed.tar.gz
Add 'const' to the bpf_filter() and bpf_validate() prototypes.
Remove a stale comment from bpf_validate().
Diffstat (limited to 'sys/net/bpf.h')
-rw-r--r--sys/net/bpf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index 64e1602..d3ab193 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -226,12 +226,12 @@ struct bpf_insn {
#define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k }
#ifdef KERNEL
-int bpf_validate __P((struct bpf_insn *, int));
+int bpf_validate __P((const struct bpf_insn *, int));
void bpf_tap __P((struct ifnet *, u_char *, u_int));
void bpf_mtap __P((struct ifnet *, struct mbuf *));
void bpfattach __P((struct ifnet *, u_int, u_int));
void bpfilterattach __P((int));
-u_int bpf_filter __P((struct bpf_insn *, u_char *, u_int, u_int));
+u_int bpf_filter __P((const struct bpf_insn *, u_char *, u_int, u_int));
#endif
/*
OpenPOWER on IntegriCloud