aboutsummaryrefslogtreecommitdiffstats
path: root/capture-wpcap.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-12-29 23:09:42 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-12-29 23:09:42 +0000
commita5712b5a9d1cb6da14ed754b703009dfd155b2d5 (patch)
treee4171ec186256d2c30b6990a6ca38253229e10b3 /capture-wpcap.c
parent76daecec9608bb43cee0a939e1025c96d8d1a053 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40335 f5534014-38df-0310-8fa8-9805f1628bb7
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)
{