aboutsummaryrefslogtreecommitdiffstats
path: root/capture-wpcap.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-02 16:27:55 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-02 16:27:55 +0000
commite77735e6f846bcb1be2ec1a04245ae93b9e26063 (patch)
tree1d6441d039956db9a1e25aeefd1240158aba4840 /capture-wpcap.c
parent8a23d1d169b22c12b9a64e8745c1d1700ddc00b6 (diff)
Add pcap_compile_nopcap(); [Not tested]
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34336 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r--capture-wpcap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/capture-wpcap.c b/capture-wpcap.c
index 2cda325136..f1d0cf06d6 100644
--- a/capture-wpcap.c
+++ b/capture-wpcap.c
@@ -63,6 +63,8 @@ static int (*p_pcap_setfilter) (pcap_t *, struct bpf_program *);
static char* (*p_pcap_geterr) (pcap_t *);
static int (*p_pcap_compile) (pcap_t *, struct bpf_program *, const char *, int,
bpf_u_int32);
+static int (*p_pcap_compile_nopcap) (int, int, struct bpf_program *, const char *, int,
+ bpf_u_int32);
static int (*p_pcap_lookupnet) (const char *, bpf_u_int32 *, bpf_u_int32 *,
char *);
static pcap_t* (*p_pcap_open_live) (const char *, int, int, int, char *);
@@ -134,6 +136,7 @@ load_wpcap(void)
SYM(pcap_setfilter, FALSE),
SYM(pcap_geterr, FALSE),
SYM(pcap_compile, FALSE),
+ SYM(pcap_compile_nopcap, FALSE),
SYM(pcap_lookupnet, FALSE),
#ifdef HAVE_PCAP_REMOTE
SYM(pcap_open, FALSE),
@@ -290,6 +293,14 @@ pcap_compile(pcap_t *a, struct bpf_program *b, const char *c, int d,
}
int
+pcap_compile_nopcap(int a, int b, struct bpf_program *c, const char *d, int e,
+ bpf_u_int32 f)
+{
+ g_assert(has_wpcap);
+ return p_pcap_compile_nopcap(a, b, c, d, e, f);
+}
+
+int
pcap_lookupnet(const char *a, bpf_u_int32 *b, bpf_u_int32 *c, char *d)
{
g_assert(has_wpcap);