aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-06-12 07:47:14 +0000
committerGuy Harris <guy@alum.mit.edu>2004-06-12 07:47:14 +0000
commitf9be24cd13351b0b848f51e6ebce85d9ce458644 (patch)
tree2e08e40da242a4924c4e61c97ec55b29047bd171 /gtk/main.c
parentf8a82d28825cbe7415b2a4e96e484bc83d28de94 (diff)
On Windows, if "get_interface_list()" returns CANT_GET_INTERFACE_LIST
and the error message includes "Not enough storage is available to process this command" or "The operation completed successfully", suggest that the user install a WinPcap version later than 3.0 - this is definitely a Frequently Asked Question on the Ethereal list. svn path=/trunk/; revision=11143
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 5b073643fc..2e6dcfb3e5 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.440 2004/06/01 17:33:36 ulfl Exp $
+ * $Id: main.c,v 1.441 2004/06/12 07:47:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1551,6 +1551,7 @@ main(int argc, char *argv[])
GList *lt_list, *lt_entry;
data_link_info_t *data_link_info;
gchar err_str[PCAP_ERRBUF_SIZE];
+ gchar *cant_get_if_list_errstr;
gboolean stats_known;
struct pcap_stat stats;
#else
@@ -2227,8 +2228,9 @@ main(int argc, char *argv[])
switch (err) {
case CANT_GET_INTERFACE_LIST:
- fprintf(stderr, "ethereal: Can't get list of interfaces: %s\n",
- err_str);
+ cant_get_if_list_errstr = cant_get_if_list_error_message(err_str);
+ fprintf(stderr, "%s\n", cant_get_if_list_errstr);
+ g_free(cant_get_if_list_errstr);
break;
case NO_INTERFACES_FOUND: