diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-06-12 07:47:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-06-12 07:47:14 +0000 |
commit | f9be24cd13351b0b848f51e6ebce85d9ce458644 (patch) | |
tree | 2e08e40da242a4924c4e61c97ec55b29047bd171 /gtk/capture_dlg.c | |
parent | f8a82d28825cbe7415b2a4e96e484bc83d28de94 (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/capture_dlg.c')
-rw-r--r-- | gtk/capture_dlg.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 76781abfc1..1785f74fc5 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -1,7 +1,7 @@ /* capture_dlg.c * Routines for packet capture windows * - * $Id: capture_dlg.c,v 1.132 2004/05/26 04:21:48 guy Exp $ + * $Id: capture_dlg.c,v 1.133 2004/06/12 07:47:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -478,6 +478,7 @@ capture_prep(void) int err; int row; char err_str[PCAP_ERRBUF_SIZE]; + gchar *cant_get_if_list_errstr; #ifdef _WIN32 GtkAdjustment *buffer_size_adj; GtkWidget *buffer_size_lb, *buffer_size_sb; @@ -515,8 +516,10 @@ capture_prep(void) if_list = get_interface_list(&err, err_str); if (if_list == NULL && err == CANT_GET_INTERFACE_LIST) { - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Can't get list of interfaces: %s", - err_str); + cant_get_if_list_errstr = cant_get_if_list_error_message(err_str); + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", + cant_get_if_list_errstr); + g_free(cant_get_if_list_errstr); } cap_open_w = dlg_window_new("Ethereal: Capture Options"); |