diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2008-04-05 04:48:36 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2008-04-05 04:48:36 +0000 |
commit | 88744abd6fbff2f2647345eaf07383eb1a64b9f8 (patch) | |
tree | 4f8a45ec6cb191d2ef95e76f9e373ee48a768c99 /plugins | |
parent | 73c84a7d7be2237e9ee836c3d54fc70478aab338 (diff) |
Don't load in files unless tree is set.
If a user wants to load or capture quickly, they won't want to wait
for the file to be processed after the first frame.
svn path=/trunk/; revision=24781
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimaxasncp/packet-wimaxasncp.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c index f730cca1fb..6fc5fcf980 100644 --- a/plugins/wimaxasncp/packet-wimaxasncp.c +++ b/plugins/wimaxasncp/packet-wimaxasncp.c @@ -27,6 +27,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + /* TODO: + - if !tree (no filters or colour rules), op doesn't appear in info column... + */ + + #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -2026,15 +2031,14 @@ dissect_wimaxasncp( offset = 0; - /* Register protocol fields, etc if haven't done yet. */ - if (wimaxasncp_dict == NULL) - { - register_wimaxasncp_fields(NULL); - } - - if (tree) { + /* Register protocol fields, etc if haven't done yet. */ + if (wimaxasncp_dict == NULL) + { + register_wimaxasncp_fields(NULL); + } + packet_item = proto_tree_add_item( tree, proto_wimaxasncp, tvb, 0, MIN(WIMAXASNCP_HEADER_LENGTH_END, tvb_length(tvb)), FALSE); @@ -2211,10 +2215,10 @@ dissect_wimaxasncp( /* Add expert item if not matched */ if (strcmp(message_name, unknown) == 0) { - expert_add_info_format(pinfo, item, - PI_UNDECODED, PI_WARN, - "Unknown message op (%u)", - 0x1f & ui8); + expert_add_info_format(pinfo, item, + PI_UNDECODED, PI_WARN, + "Unknown message op (%u)", + 0x1f & ui8); } if (check_col(pinfo->cinfo, COL_INFO)) |