aboutsummaryrefslogtreecommitdiffstats
path: root/capture-wpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-12-29 23:09:42 +0000
committerGuy Harris <guy@alum.mit.edu>2011-12-29 23:09:42 +0000
commit7e531049a0dd26f8e87e6d866c0ff0c0dd01f0c9 (patch)
treee4171ec186256d2c30b6990a6ca38253229e10b3 /capture-wpcap.c
parent3864d5d19d5757ce74d5d282e36382a7fde1301f (diff)
Swallow cant_load_winpcap_err() up into capture-wpcap.c, so that
anything that uses WinPcap can use that message text in its error messages. svn path=/trunk/; revision=40335
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r--capture-wpcap.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/capture-wpcap.c b/capture-wpcap.c
index f831f225f1..02622a3506 100644
--- a/capture-wpcap.c
+++ b/capture-wpcap.c
@@ -36,7 +36,6 @@
#include "capture-pcap-util.h"
#include "capture-pcap-util-int.h"
#include "capture-wpcap.h"
-#include "capture_errs.h"
#include <wsutil/file_util.h>
@@ -232,6 +231,34 @@ load_wpcap(void)
has_wpcap = TRUE;
}
+/*
+ * The official list of WinPcap mirrors is at
+ * http://www.winpcap.org/misc/mirrors.htm
+ */
+char *
+cant_load_winpcap_err(const char *app_name)
+{
+ return g_strdup_printf(
+"Unable to load WinPcap (wpcap.dll); %s will not be able to capture\n"
+"packets.\n"
+"\n"
+"In order to capture packets, WinPcap must be installed; see\n"
+"\n"
+" http://www.winpcap.org/\n"
+"\n"
+"or the mirror at\n"
+"\n"
+" http://www.mirrors.wiretapped.net/security/packet-capture/winpcap/\n"
+"\n"
+"or the mirror at\n"
+"\n"
+" http://winpcap.cs.pu.edu.tw/\n"
+"\n"
+"for a downloadable version of WinPcap and for instructions on how to install\n"
+"WinPcap.",
+ app_name);
+}
+
char*
pcap_lookupdev (char *a)
{