diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2008-02-12 03:16:09 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2008-02-12 03:16:09 +0000 |
commit | 0a85a9e4c6016b0cd68b590990a927f4bb4d4fce (patch) | |
tree | af744fcb03e5f1df24631059a5792b6679c28b54 /file.c | |
parent | e3c70390151a5a9e98e70b400c3d7493ea4b807b (diff) | |
download | wireshark-0a85a9e4c6016b0cd68b590990a927f4bb4d4fce.tar.gz |
Introduce a new column type called custom, which lets you put any display
filter name in the description field and it will display that field in the
packet list if it occurs in that packet. Note that the more common fields
are implemented, but a number of them remain to be implemented in
epan/proto.c. I will work on these other fields as I have time.
svn path=/trunk/; revision=24308
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -77,8 +77,7 @@ #include <epan/timestamp.h> #include <epan/dfilter/dfilter-macro.h> #include "file_util.h" - - +#include <epan/column-utils.h> #ifdef HAVE_LIBPCAP gboolean auto_scroll_live; @@ -939,11 +938,13 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, we have tap listeners; + we have custom columns; + allocate a protocol tree root node, so that we'll construct a protocol tree against which a filter expression can be evaluated. */ if ((dfcode != NULL && refilter) || color_filters_used() - || num_tap_filters != 0) + || num_tap_filters != 0 || have_custom_cols()) create_proto_tree = TRUE; /* Dissect the frame. */ @@ -956,6 +957,9 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, if (color_filters_used()) { color_filters_prime_edt(edt); } + + col_custom_prime_edt(edt); + tap_queue_init(edt); epan_dissect_run(edt, pseudo_header, buf, fdata, &cf->cinfo); tap_push_tapped_queue(edt); |