From f9be24cd13351b0b848f51e6ebce85d9ce458644 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 12 Jun 2004 07:47:14 +0000 Subject: 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 --- gtk/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gtk/main.c') 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 @@ -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: -- cgit v1.2.3