diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2016-10-30 17:46:35 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2016-10-30 17:46:35 +0000 |
commit | dd5499ac9a8b37c020c8f4552a1cd891f0f6fcd0 (patch) | |
tree | f2050d32e4bafae0cbdf353867ed817b43ecb5d1 /sys/net | |
parent | 576ce28454180872bdbbfd17fd5f852b3427bdae (diff) |
add __BEGIN_DECLS/__END_DECLS to the public userland side of net/bpf.h,
so c++ programs can use them.
OK jca@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h index b38a04a48e9..8d193f0f8f5 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.h,v 1.58 2016/09/12 16:24:37 krw Exp $ */ +/* $OpenBSD: bpf.h,v 1.59 2016/10/30 17:46:34 phessler Exp $ */ /* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */ /* @@ -276,11 +276,13 @@ struct bpf_ops { #define BPF_STMT(code, k) { (u_int16_t)(code), 0, 0, k } #define BPF_JUMP(code, k, jt, jf) { (u_int16_t)(code), jt, jf, k } +__BEGIN_DECLS u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int) __bounded((__buffer__, 2, 4)); u_int _bpf_filter(const struct bpf_insn *, const struct bpf_ops *, const void *, u_int); +__END_DECLS #ifdef _KERNEL struct ifnet; |