aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-31 02:29:19 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-31 02:29:19 +0000
commit61e26a56bada54f651cb5c4110cae4b8f6548863 (patch)
treee2a8c34d17f669aadbf1d86e8b4ae68d69b15002
parent25edd1c53e8ad3f53ef29d7cc5a6ca5a563f75a7 (diff)
Add some more information to the error message for invalid capture
filters that look like display filters. svn path=/trunk/; revision=9914
-rw-r--r--capture.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/capture.c b/capture.c
index 3068a877e6..176496d0eb 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.230 2004/01/31 02:25:43 ulfl Exp $
+ * $Id: capture.c,v 1.231 2004/01/31 02:29:19 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1535,8 +1535,10 @@ capture(gboolean *stats_known, struct pcap_stat *stats)
if (dfilter_compile(cfile.cfilter, &rfcode) && rfcode != NULL) {
snprintf(errmsg, sizeof errmsg,
"Unable to parse capture filter string (%s).\n"
- " Interestingly enough, this looks like a valid display filter\n"
- " Are you sure you didn't mix them up?",
+ "\n"
+ " That string looks like a valid display filter; note that display filters\n"
+ " and capture filters don't have the same syntax, so you can't use\n"
+ " most display filter expressions as capture filters.",
pcap_geterr(pch));
dfilter_free(rfcode);
} else {