aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.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 /tethereal.c
parentf8a82d28825cbe7415b2a4e96e484bc83d28de94 (diff)
downloadwireshark-f9be24cd13351b0b848f51e6ebce85d9ce458644.tar.gz
wireshark-f9be24cd13351b0b848f51e6ebce85d9ce458644.tar.bz2
wireshark-f9be24cd13351b0b848f51e6ebce85d9ce458644.zip
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 'tethereal.c')
-rw-r--r--tethereal.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/tethereal.c b/tethereal.c
index ddf36848d2..3c5c7ee82c 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.243 2004/06/10 08:01:51 guy Exp $
+ * $Id: tethereal.c,v 1.244 2004/06/12 07:47:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -816,6 +816,7 @@ main(int argc, char *argv[])
long adapter_index;
char *p;
gchar err_str[PCAP_ERRBUF_SIZE];
+ gchar *cant_get_if_list_errstr;
#else
gboolean capture_option_specified = FALSE;
#endif
@@ -1000,8 +1001,10 @@ main(int argc, char *argv[])
switch (err) {
case CANT_GET_INTERFACE_LIST:
- fprintf(stderr, "tethereal: 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, "tethereal: %s\n", cant_get_if_list_errstr);
+ g_free(cant_get_if_list_errstr);
break;
case NO_INTERFACES_FOUND:
@@ -1081,8 +1084,10 @@ main(int argc, char *argv[])
switch (err) {
case CANT_GET_INTERFACE_LIST:
- fprintf(stderr, "tethereal: 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, "tethereal: %s\n", cant_get_if_list_errstr);
+ g_free(cant_get_if_list_errstr);
break;
case NO_INTERFACES_FOUND:
@@ -1567,8 +1572,10 @@ main(int argc, char *argv[])
switch (err) {
case CANT_GET_INTERFACE_LIST:
- fprintf(stderr, "tethereal: 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, "tethereal: %s\n", cant_get_if_list_errstr);
+ g_free(cant_get_if_list_errstr);
break;
case NO_INTERFACES_FOUND: