For the "don't have WinPcap" case, put up some stuff in the welcome
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 30 Dec 2011 00:52:15 +0000 (00:52 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 30 Dec 2011 00:52:15 +0000 (00:52 +0000)
screen discussing that.  (XXX - those links should be made live.)

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

gtk/main_welcome.c

index cd3fd97a3a194a837ce6496baf0e63d564a1466c..cff29b2b149fb50db12cf795a45251f0303e2605 100644 (file)
@@ -1248,9 +1248,36 @@ welcome_new(void)
         }
 #endif /* _WIN32 */
     } else {
-        label_text =  g_strdup("No interface can be used for capturing in\n"
-                               "this system with the current configuration.\n\n"
-                               "See Capture Help below for details.");
+       if (if_list == NULL && err != NO_INTERFACES_FOUND) {
+            g_free(err_str);
+            if (err == CANT_GET_INTERFACE_LIST) {
+                label_text = g_strdup("No interface can be used for capturing in\n"
+                                      "this system with the current configuration.\n\n"
+                                      "See Capture Help below for details.");
+            } else {
+                label_text = g_strdup("WinPcap doesn't appear to be installed.\n"
+                                      "In order to capture packets, WinPcap\n"
+                                      "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\n"
+                                      "and for instructions on how to install\n"
+                                      "WinPcap.");
+            }
+        } else {
+            label_text = g_strdup("No interface can be used for capturing in\n"
+                                  "this system with the current configuration.\n\n"
+                                  "See Capture Help below for details.");
+        }
         w = gtk_label_new(label_text);
         gtk_label_set_markup(GTK_LABEL(w), label_text);
         g_free (label_text);