aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-01-24 12:13:15 -0800
committerGuy Harris <guy@alum.mit.edu>2011-01-24 12:14:10 -0800
commit9ef7eb25b037ac0760d521369435052fb516ee08 (patch)
tree34dc2ee4536c2f16246f02d38e87c6df3a587170
parent79784d76133ce89d8f86d498dcb5b417c40b4c4e (diff)
downloadlibpcap-9ef7eb25b037ac0760d521369435052fb516ee08.tar.gz
Don't declare bpf_filter() in pcap/pcap.h in NetBSD.
That avoids colliding with the definition in <net/bpf.h> (which arguably shouldn't be there, so we may need to update the check if a future version of NetBSD removes it).
-rw-r--r--pcap/pcap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcap/pcap.h b/pcap/pcap.h
index 377bcb18..a02b3599 100644
--- a/pcap/pcap.h
+++ b/pcap/pcap.h
@@ -403,13 +403,15 @@ void pcap_freealldevs(pcap_if_t *);
const char *pcap_lib_version(void);
/*
- * XXX - on at least some versions of NetBSD, we don't want to declare
+ * On at least some versions of NetBSD, we don't want to declare
* bpf_filter() here, as it's also be declared in <net/bpf.h>, with a
* different signature, but, on other BSD-flavored UN*Xes, it's not
* declared in <net/bpf.h>, so we *do* want to declare it here, so it's
* declared when we build pcap-bpf.c.
*/
+#ifndef __NetBSD__
u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int);
+#endif
int bpf_validate(const struct bpf_insn *f, int len);
char *bpf_image(const struct bpf_insn *, int);
void bpf_dump(const struct bpf_program *, int);