diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-13 23:47:43 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-13 23:47:43 +0000 |
commit | ab6490398c47842880a96cef88161a535f825aa1 (patch) | |
tree | 8d1cb07df40b15146867574b7a920c1df7eb572c /summary.c | |
parent | a5acc58fe3e5d2b5e8dde83ccda2ad5b5f3246c8 (diff) | |
download | wireshark-ab6490398c47842880a96cef88161a535f825aa1.tar.gz wireshark-ab6490398c47842880a96cef88161a535f825aa1.tar.bz2 wireshark-ab6490398c47842880a96cef88161a535f825aa1.zip |
Moved global memory alloction used in display filters (which was stored
in dfilter-grammar.y) to a new struct dfilter. Display filters now have
their own struct, rather than simply being GNode's. This allows multiple
display filters to exist at once, aiding John McDermott in his
work on colorization.
svn path=/trunk/; revision=480
Diffstat (limited to 'summary.c')
-rw-r--r-- | summary.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,7 +1,7 @@ /* summary.c * Routines for capture file summary window * - * $Id: summary.c,v 1.8 1999/08/10 04:13:36 guy Exp $ + * $Id: summary.c,v 1.9 1999/08/13 23:47:43 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -250,10 +250,9 @@ traffic_bytes/seconds); } add_string_to_box(string_buff, capture_box); - /* Display filter. The situation where cf.dfilter="" and cf.dfcode=NULL can exist, - so I'll check for both */ - if (cf.dfilter && cf.dfcode) { - snprintf(string_buff, SUM_STR_MAX, "Display filter: %s", cf.dfilter); + /* Display filter */ + if (DFILTER_CONTAINS_FILTER(cf.dfcode)) { + snprintf(string_buff, SUM_STR_MAX, "Display filter: %s", cf.dfcode->dftext); } else { sprintf(string_buff, "Display filter: none"); } |