Just hard-code the error for "can't load WinPcap"; the one that
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Dec 2011 22:06:22 +0000 (22:06 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Dec 2011 22:06:22 +0000 (22:06 +0000)
cant_load_winpcap_err() has some redundant gunk in it.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40333 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index 467a517b599dce4336aff8456ea7cedfd692df97..b035185f9bf88ed3de7c0c36c3e234cfd99d5500 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -81,7 +81,6 @@
 #include "capture-pcap-util.h"
 #ifdef _WIN32
 #include "capture-wpcap.h"
-#include "capture_errs.h"
 #endif /* _WIN32 */
 
 #include "pcapio.h"
@@ -682,13 +681,22 @@ get_capture_device_open_failure_messages(const char *open_err_str,
                "The capture session could not be initiated (%s).", open_err_str);
 #ifdef _WIN32
     if (!has_wpcap) {
-      char *detailed_err;
-
-      detailed_err = cant_load_winpcap_err("TShark");
       g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len,
-                 "\n",
-                 "%s\n", detailed_err);
-      g_free(detailed_err);
+                 "\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.");
     } else {
       g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len,
                  "\n"