summaryrefslogtreecommitdiff
path: root/lib/libpcap
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2004-06-24 18:29:39 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2004-06-24 18:29:39 +0000
commit0b3661299b4b5c2bceb4206289cebfec352b9425 (patch)
treee037a1a96d63bf607c5451b4834a69c65571dc0d /lib/libpcap
parentf9abc6bd91e2ed7ecc768b17e9af5dacf5e6be7e (diff)
make safe for inclusion in C++ code; ok deraadt@
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/pcap.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpcap/pcap.h b/lib/libpcap/pcap.h
index 8c300ce03b8..0404f31f92e 100644
--- a/lib/libpcap/pcap.h
+++ b/lib/libpcap/pcap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcap.h,v 1.11 2002/01/17 23:29:12 ericj Exp $ */
+/* $OpenBSD: pcap.h,v 1.12 2004/06/24 18:29:38 naddy Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996, 1997
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/pcap.h,v 1.11 2002/01/17 23:29:12 ericj Exp $ (LBL)
+ * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/pcap.h,v 1.12 2004/06/24 18:29:38 naddy Exp $ (LBL)
*/
#ifndef lib_pcap_h
@@ -101,6 +101,7 @@ struct pcap_stat {
typedef void (*pcap_handler)(u_char *, const struct pcap_pkthdr *,
const u_char *);
+__BEGIN_DECLS
char *pcap_lookupdev(char *);
int pcap_lookupnet(char *, bpf_u_int32 *, bpf_u_int32 *, char *);
pcap_t *pcap_open_live(char *, int, int, int, char *);
@@ -138,4 +139,5 @@ void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *);
/* XXX this guy lives in the bpf tree */
u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
char *bpf_image(struct bpf_insn *, int);
+__END_DECLS
#endif