add some more help text to the "no packets captured" error dialog:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 25 Nov 2005 22:27:27 +0000 (22:27 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 25 Nov 2005 22:27:27 +0000 (22:27 +0000)
link to CaptureSetup wiki page
Win32 only: wireless: "try switch off promicuous mode"

This way we might get less user questions on the users-mailing list ...

Especially the second one hopefully could save us from a lot of support mails :-)

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

capture.c

index 762ae3838ccfb9d0d4f88d3df87671df7bd52c53..2b6ab53779f33c4def3097757407129a68878431 100644 (file)
--- a/capture.c
+++ b/capture.c
@@ -215,8 +215,20 @@ guint32 drops)
   /* if we didn't captured even a single packet, close the file again */
   if(cf_packet_count(capture_opts->cf) == 0 && !capture_opts->restart) {
     simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK, 
-    "%sNo packets captured!%s\n\n"
-    "As no data was captured, closing the %scapture file!",
+"%sNo packets captured!%s\n"
+"\n"
+"As no data was captured, closing the %scapture file!\n"
+"\n"
+"\n"
+"Help about capturing can be found at:\n"
+"\n"
+"       http://wiki.ethereal.com/CaptureSetup"
+#ifdef _WIN32
+"\n\n"
+"Wireless (Wi-Fi/WLAN):\n"
+"Try to switch off promiscuous mode in the Capture Options!"
+#endif
+"",
     simple_dialog_primary_start(), simple_dialog_primary_end(),
     (cf_is_tempfile(capture_opts->cf)) ? "temporary " : "");
     cf_close(capture_opts->cf);
@@ -358,9 +370,21 @@ capture_input_closed(capture_options *capture_opts)
 
         case CF_READ_OK:
             if(cf_packet_count(capture_opts->cf) == 0 && !capture_opts->restart) {
-              simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK, 
-              "%sNo packets captured!%s\n\n"
-              "As no data was captured, closing the %scapture file!",
+                simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK, 
+"%sNo packets captured!%s\n"
+"\n"
+"As no data was captured, closing the %scapture file!\n"
+"\n"
+"\n"
+"Help about capturing can be found at:\n"
+"\n"
+"       http://wiki.ethereal.com/CaptureSetup"
+#ifdef _WIN32
+"\n\n"
+"Wireless (Wi-Fi/WLAN):\n"
+"Try to switch off promiscuous mode in the Capture Options!"
+#endif
+"",
               simple_dialog_primary_start(), simple_dialog_primary_end(),
               cf_is_tempfile(capture_opts->cf) ? "temporary " : "");
               cf_close(capture_opts->cf);