diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-11 18:08:03 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-11 18:08:03 +0000 |
commit | 261a8406bc5694f05a78cc4bee2c2d854a5502ab (patch) | |
tree | fe74758560206583b78f43438252f81d2284c71b /epan/epan.c | |
parent | 8b9d2f74903b1c10c046843dedb4fea59450c283 (diff) | |
download | wireshark-261a8406bc5694f05a78cc4bee2c2d854a5502ab.tar.gz |
TRY_TO_FAKE_THIS_ITEM now fakes FT_PROTOCOL per default. If there are any users (e.g. proto_hier_stats.c, others?) that relies on FT_PROTOCOL nodes being created they'll now need to call the newly introduced epan_dissect_fake_protocols() to disable this optimization.
Also make use of TRY_TO_FAKE_THIS_ITEM in proto_tree_add_text_node(), proto_tree_add_none_format() and proto_tree_add_protocol_format().
svn path=/trunk/; revision=29380
Diffstat (limited to 'epan/epan.c')
-rw-r--r-- | epan/epan.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/epan.c b/epan/epan.c index de33d7a4d9..7c088914d3 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -163,6 +163,13 @@ epan_dissect_new(gboolean create_proto_tree, gboolean proto_tree_visible) } void +epan_dissect_fake_protocols(epan_dissect_t *edt, gboolean fake_protocols) +{ + if (edt) + proto_tree_set_fake_protocols(edt->tree, fake_protocols); +} + +void epan_dissect_run(epan_dissect_t *edt, void* pseudo_header, const guint8* data, frame_data *fd, column_info *cinfo) { |