summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2008-02-12 03:16:09 +0000
committerStephen Fisher <steve@stephen-fisher.com>2008-02-12 03:16:09 +0000
commit0a85a9e4c6016b0cd68b590990a927f4bb4d4fce (patch)
treeaf744fcb03e5f1df24631059a5792b6679c28b54 /file.c
parente3c70390151a5a9e98e70b400c3d7493ea4b807b (diff)
downloadwireshark-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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/file.c b/file.c
index 4e5a12e8a7..b50ab8a3df 100644
--- a/file.c
+++ b/file.c
@@ -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);