aboutsummaryrefslogtreecommitdiffstats
path: root/capture-wpcap.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-03-13 22:49:30 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-03-13 22:49:30 +0000
commit6c9a1dc0939565e1ca0140e3260abaa1184fafdf (patch)
tree82c65bc81d0037a4529468ff8561a0a8b61647e3 /capture-wpcap.c
parentccb2eb06cab142c51c0f04b3db92a499ebdbd403 (diff)
experimental: make usage of pcap_setbuff to increase the kernel buffer size
svn path=/trunk/; revision=10377
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r--capture-wpcap.c11
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()".