aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-12-30 00:52:15 +0000
committerGuy Harris <guy@alum.mit.edu>2011-12-30 00:52:15 +0000
commit815d6367c498f765ee6353d92a2dff6a7849b1df (patch)
treed90d37ad6c1327cfeee730a484492e6d0e4be1b9 /gtk
parentf210836a028965c756a4866eac05a8a4e2084082 (diff)
For the "don't have WinPcap" case, put up some stuff in the welcome
screen discussing that. (XXX - those links should be made live.) svn path=/trunk/; revision=40340
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main_welcome.c33
1 files changed, 30 insertions, 3 deletions
diff --git a/gtk/main_welcome.c b/gtk/main_welcome.c
index cd3fd97a3a..cff29b2b14 100644
--- a/gtk/main_welcome.c
+++ b/gtk/main_welcome.c
@@ -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);