diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-31 02:29:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-31 02:29:19 +0000 |
commit | 61e26a56bada54f651cb5c4110cae4b8f6548863 (patch) | |
tree | e2a8c34d17f669aadbf1d86e8b4ae68d69b15002 /capture.c | |
parent | 25edd1c53e8ad3f53ef29d7cc5a6ca5a563f75a7 (diff) | |
download | wireshark-61e26a56bada54f651cb5c4110cae4b8f6548863.tar.gz wireshark-61e26a56bada54f651cb5c4110cae4b8f6548863.tar.bz2 wireshark-61e26a56bada54f651cb5c4110cae4b8f6548863.zip |
Add some more information to the error message for invalid capture
filters that look like display filters.
svn path=/trunk/; revision=9914
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 { |