diff options
author | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-12 03:16:09 +0000 |
---|---|---|
committer | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-12 03:16:09 +0000 |
commit | 63d7786894d72d8b3c4c0a01c62fec4efdcb2c55 (patch) | |
tree | af744fcb03e5f1df24631059a5792b6679c28b54 /file.c | |
parent | 8c9dc20266a9e30f0a03d6e78c0b0b2ebb9d4c86 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24308 f5534014-38df-0310-8fa8-9805f1628bb7
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); |