diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2010-05-25 14:02:17 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2010-05-25 14:02:17 +0000 |
commit | 892d3112ed3ac707e3f720f9aeba0fecc4d44500 (patch) | |
tree | c90f5a7c434f71130108628147a1337ff70fbb65 /epan/dissectors/packet-catapult-dct2000.c | |
parent | ee5c636603456244b8517239b75fa971b3f0482b (diff) |
Add a filter for DCT2000 error strings, and allow it be included in generated filters from RLC status window.
svn path=/trunk/; revision=32946
Diffstat (limited to 'epan/dissectors/packet-catapult-dct2000.c')
-rw-r--r-- | epan/dissectors/packet-catapult-dct2000.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-catapult-dct2000.c b/epan/dissectors/packet-catapult-dct2000.c index d996bd778e..adb6f0244b 100644 --- a/epan/dissectors/packet-catapult-dct2000.c +++ b/epan/dissectors/packet-catapult-dct2000.c @@ -61,6 +61,7 @@ static int hf_catapult_dct2000_direction = -1; static int hf_catapult_dct2000_encap = -1; static int hf_catapult_dct2000_unparsed_data = -1; static int hf_catapult_dct2000_comment = -1; +static int hf_catapult_dct2000_error_comment = -1; static int hf_catapult_dct2000_tty = -1; static int hf_catapult_dct2000_tty_line = -1; static int hf_catapult_dct2000_dissected_length = -1; @@ -1897,6 +1898,9 @@ dissect_catapult_dct2000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Look for and flag generic error messages */ if (strncmp(string, ">> ERR", 6) == 0) { + proto_item *error_ti = proto_tree_add_item(dct2000_tree, hf_catapult_dct2000_error_comment, tvb, + offset, -1, FALSE); + PROTO_ITEM_SET_GENERATED(error_ti); expert_add_info_format(pinfo, string_ti, PI_SEQUENCE, PI_ERROR, "%s", string); } @@ -2329,6 +2333,12 @@ void proto_register_catapult_dct2000(void) "Comment", HFILL } }, + { &hf_catapult_dct2000_error_comment, + { "Error comment", + "dct2000.error-comment", FT_NONE, BASE_NONE, NULL, 0x0, + "Error Comment", HFILL + } + }, { &hf_catapult_dct2000_dissected_length, { "Dissected length", "dct2000.dissected-length", FT_UINT16, BASE_DEC, NULL, 0x0, |