diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2006-09-20 12:13:18 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2006-09-20 12:13:18 +0000 |
commit | b7bb8c7460ae6a99cfc7377d9926694f0d481ea8 (patch) | |
tree | ee507e2e73aa3d3eb9e136e3ab571c14ed2713f0 /epan/dissectors/packet-msrp.c | |
parent | 6de1b28bb859a099cc499414d24f955a8fcf08f4 (diff) | |
download | wireshark-b7bb8c7460ae6a99cfc7377d9926694f0d481ea8.tar.gz |
Make the data part of the message filterable
svn path=/trunk/; revision=19265
Diffstat (limited to 'epan/dissectors/packet-msrp.c')
-rw-r--r-- | epan/dissectors/packet-msrp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/epan/dissectors/packet-msrp.c b/epan/dissectors/packet-msrp.c index 302e27a245..8dbbca9d7e 100644 --- a/epan/dissectors/packet-msrp.c +++ b/epan/dissectors/packet-msrp.c @@ -71,6 +71,8 @@ static int hf_msrp_msg_hdr = -1; static int hf_msrp_end_line = -1; static int hf_msrp_cnt_flg = -1; +static int hf_msrp_data = -1; + /* MSRP setup fields */ static int hf_msrp_setup = -1; static int hf_msrp_setup_frame = -1; @@ -708,9 +710,11 @@ dissect_msrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * Set the length of the header item. */ proto_item_set_end(msrp_headers_item, tvb, next_offset); + + /* Create new tree & tvb for data */ next_tvb = tvb_new_subset(tvb, next_offset, -1, -1); - ti = proto_tree_add_text(msrp_tree, next_tvb, 0, -1, - "Data"); + ti = proto_tree_add_item(msrp_tree, hf_msrp_data, tvb, + next_offset, -1, FALSE); msrp_data_tree = proto_item_add_subtree(ti, ett_msrp_data); /* give the content type parameters to sub dissectors */ @@ -909,6 +913,11 @@ proto_register_msrp(void) FT_STRING, BASE_NONE,NULL,0x0, "Authentication-Info", HFILL } }, + { &hf_msrp_data, + { "Data", "msrp.data", + FT_STRING, BASE_NONE, NULL, 0x0, + "Data", HFILL} + }, { &hf_msrp_setup, { "Stream setup", "msrp.setup", FT_STRING, BASE_NONE, NULL, 0x0, |