diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-10-02 16:27:55 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-10-02 16:27:55 +0000 |
commit | 63a5ecbbf069b8c066f4466c9409e8c3e7dbcca7 (patch) | |
tree | 1d6441d039956db9a1e25aeefd1240158aba4840 /capture-wpcap.c | |
parent | b24ef36cc0539ffd1f2b89cf95d79ce6b6a05a57 (diff) |
Add pcap_compile_nopcap(); [Not tested]
svn path=/trunk/; revision=34336
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r-- | capture-wpcap.c | 11 |
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); |