diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-03-13 22:49:30 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-03-13 22:49:30 +0000 |
commit | 91b4aaa1e8f5b46dcfc2ca828a5e1d579ee29b3f (patch) | |
tree | 82c65bc81d0037a4529468ff8561a0a8b61647e3 /capture-wpcap.c | |
parent | 1b64be05a71e963a30635c94f3854495d978ab1b (diff) |
experimental: make usage of pcap_setbuff to increase the kernel buffer size
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10377 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r-- | capture-wpcap.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/capture-wpcap.c b/capture-wpcap.c index 618dd58747..53225ae889 100644 --- a/capture-wpcap.c +++ b/capture-wpcap.c @@ -3,7 +3,7 @@ * time, so that we only need one Ethereal binary and one Tethereal binary * for Windows, regardless of whether WinPcap is installed or not. * - * $Id: capture-wpcap.c,v 1.8 2004/01/05 19:31:42 ulfl Exp $ + * $Id: capture-wpcap.c,v 1.9 2004/03/13 22:49:29 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -70,6 +70,7 @@ static int (*p_pcap_findalldevs) (pcap_if_t **, char *); static void (*p_pcap_freealldevs) (pcap_if_t *); #endif static const char *(*p_pcap_lib_version) (void); +static int (*p_pcap_setbuff) (pcap_t *, int dim); typedef struct { const char *name; @@ -102,6 +103,7 @@ load_wpcap(void) SYM(pcap_freealldevs, TRUE), #endif SYM(pcap_lib_version, TRUE), + SYM(pcap_setbuff, TRUE), { NULL, NULL, FALSE } }; @@ -248,6 +250,13 @@ pcap_freealldevs(pcap_if_t *a) } #endif +/* setbuff is win32 specific! */ +int pcap_setbuff(pcap_t *a, int b) +{ + g_assert(has_wpcap); + return p_pcap_setbuff(a, b); +} + /* * This will use "pcap_findalldevs()" if we have it, otherwise it'll * fall back on "pcap_lookupdev()". |