summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.h
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2016-10-30 17:46:34 +0000
committerphessler <phessler@openbsd.org>2016-10-30 17:46:34 +0000
commit9560c238be32fbc659137a811feb91a4c277d311 (patch)
treedc0136d9024041276ea4d96f478f15cd153b3ca4 /sys/net/bpf.h
parentlarge-community needs to have an argument (diff)
downloadwireguard-openbsd-9560c238be32fbc659137a811feb91a4c277d311.tar.xz
wireguard-openbsd-9560c238be32fbc659137a811feb91a4c277d311.zip
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/bpf.h')
-rw-r--r--sys/net/bpf.h4
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;