summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/pcap.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-08-07 06:20:58 +0000
committerphk <phk@FreeBSD.org>1998-08-07 06:20:58 +0000
commit8c372cf52216bf7827b7608354d4f976a4e8c9fb (patch)
tree0d62d5b756485460f489a219f50d7e7a2fddfe3a /contrib/libpcap/pcap.h
parentcf87bd045cafe9d7015d858a8902363d9444f6b0 (diff)
downloadFreeBSD-src-8c372cf52216bf7827b7608354d4f976a4e8c9fb.zip
FreeBSD-src-8c372cf52216bf7827b7608354d4f976a4e8c9fb.tar.gz
None of the header files for the packet capture library
are suitable to include in a C++ file. PR: 7229 Reviewed by: phk Submitted by: Craig Spannring <cts@internetcds.com>
Diffstat (limited to 'contrib/libpcap/pcap.h')
-rw-r--r--contrib/libpcap/pcap.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/libpcap/pcap.h b/contrib/libpcap/pcap.h
index 4698735..8180ce9 100644
--- a/contrib/libpcap/pcap.h
+++ b/contrib/libpcap/pcap.h
@@ -43,6 +43,11 @@
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define PCAP_VERSION_MAJOR 2
#define PCAP_VERSION_MINOR 4
@@ -134,4 +139,10 @@ 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);
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif
OpenPOWER on IntegriCloud