aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-util-unix.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 /pcap-util-unix.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 'pcap-util-unix.c')
-rw-r--r--pcap-util-unix.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/pcap-util-unix.c b/pcap-util-unix.c
index 29015769b6..d0b4c0ec41 100644
--- a/pcap-util-unix.c
+++ b/pcap-util-unix.c
@@ -1,7 +1,7 @@
/* pcap-util-unix.c
* UN*X-specific utility routines for packet capture
*
- * $Id: pcap-util-unix.c,v 1.2 2003/10/10 06:05:48 guy Exp $
+ * $Id: pcap-util-unix.c,v 1.3 2004/06/12 07:47:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -271,6 +271,16 @@ search_for_if_cb(gpointer data, gpointer user_data)
#endif /* HAVE_PCAP_FINDALLDEVS */
/*
+ * Get an error message string for a CANT_GET_INTERFACE_LIST error from
+ * "get_interface_list()".
+ */
+gchar *
+cant_get_if_list_error_message(const char *err_str)
+{
+ return g_strdup_printf("Can't get list of interfaces: %s", err_str);
+}
+
+/*
* Append the version of libpcap with which we were compiled to a GString.
*/
void