diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-07-20 12:19:22 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-07-20 12:19:22 +0000 |
commit | 7d7f7d870e35df50aa1f2b6c5928e99d707cbb25 (patch) | |
tree | 1ca253a4ddb31ac4e5cd8cc1e567ab1e7aab942c /asn1/lte-rrc | |
parent | 6eec1f97bb2f928fbd0e0c0dfb72642a4ef7fbb6 (diff) |
Register nicer entry points for LTE RRC BCH messages, and use them in RLC, MAC, PDCP.
svn path=/trunk/; revision=38131
Diffstat (limited to 'asn1/lte-rrc')
-rw-r--r-- | asn1/lte-rrc/packet-lte-rrc-template.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/asn1/lte-rrc/packet-lte-rrc-template.c b/asn1/lte-rrc/packet-lte-rrc-template.c index 4c9b3bb4f3..0f1a192bd8 100644 --- a/asn1/lte-rrc/packet-lte-rrc-template.c +++ b/asn1/lte-rrc/packet-lte-rrc-template.c @@ -296,7 +296,37 @@ dissect_lte_rrc_UL_DCCH(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } +static void +dissect_lte_rrc_BCCH_BCH(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +{ + proto_item *ti; + proto_tree *lte_rrc_tree; + + col_set_str(pinfo->cinfo, COL_PROTOCOL, "LTE RRC BCCH_BCH"); + col_clear(pinfo->cinfo, COL_INFO); + if (tree) { + ti = proto_tree_add_item(tree, proto_lte_rrc, tvb, 0, -1, FALSE); + lte_rrc_tree = proto_item_add_subtree(ti, ett_lte_rrc); + dissect_BCCH_BCH_Message_PDU(tvb, pinfo, lte_rrc_tree); + } +} + +static void +dissect_lte_rrc_BCCH_DL_SCH(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +{ + proto_item *ti; + proto_tree *lte_rrc_tree; + + col_set_str(pinfo->cinfo, COL_PROTOCOL, "LTE RRC DL_SCH"); + col_clear(pinfo->cinfo, COL_INFO); + if (tree) { + + ti = proto_tree_add_item(tree, proto_lte_rrc, tvb, 0, -1, FALSE); + lte_rrc_tree = proto_item_add_subtree(ti, ett_lte_rrc); + dissect_BCCH_DL_SCH_Message_PDU(tvb, pinfo, lte_rrc_tree); + } +} /*--- proto_register_rrc -------------------------------------------*/ void proto_register_lte_rrc(void) { @@ -453,6 +483,8 @@ void proto_register_lte_rrc(void) { register_dissector("lte_rrc.dl_dcch", dissect_lte_rrc_DL_DCCH, proto_lte_rrc); register_dissector("lte_rrc.ul_ccch", dissect_lte_rrc_UL_CCCH, proto_lte_rrc); register_dissector("lte_rrc.ul_dcch", dissect_lte_rrc_UL_DCCH, proto_lte_rrc); + register_dissector("lte_rrc.bcch_bch", dissect_lte_rrc_BCCH_BCH, proto_lte_rrc); + register_dissector("lte_rrc.bcch_dl_sch", dissect_lte_rrc_BCCH_DL_SCH, proto_lte_rrc); /* Register fields and subtrees */ proto_register_field_array(proto_lte_rrc, hf, array_length(hf)); |