diff options
author | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-25 14:02:17 +0000 |
---|---|---|
committer | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-25 14:02:17 +0000 |
commit | ada0c3af7efbc754a53e2fa7ae115745ae581bbc (patch) | |
tree | c90f5a7c434f71130108628147a1337ff70fbb65 /epan/dissectors/packet-catapult-dct2000.c | |
parent | 2a4d9fd3f74d922c52e003317540eb60be10e627 (diff) |
Add a filter for DCT2000 error strings, and allow it be included in generated filters from RLC status window.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32946 f5534014-38df-0310-8fa8-9805f1628bb7
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, |