aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2013-08-08 14:45:45 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2013-08-08 14:45:45 +0000
commitaabda8b27513d4fe27813a7e8577d11188c2c780 (patch)
treec7dd3e98ebe1a55cdd4c7a0179912954126bba3a /epan
parentc5319ebc93f82eef68174881904526314c891faf (diff)
Improve stats of broadcast messages
svn path=/trunk/; revision=51219
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-mac-lte.c7
-rw-r--r--epan/dissectors/packet-mac-lte.h1
2 files changed, 6 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c
index 1142ac8423..f13edbf087 100644
--- a/epan/dissectors/packet-mac-lte.c
+++ b/epan/dissectors/packet-mac-lte.c
@@ -1833,7 +1833,7 @@ static void dissect_bch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* Dissect PCH PDU */
static void dissect_pch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
- proto_item *pdu_ti, int offset, guint8 direction)
+ proto_item *pdu_ti, int offset, guint8 direction, mac_lte_tap_info *tap_info)
{
proto_item *ti;
@@ -1848,6 +1848,9 @@ static void dissect_pch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
ti = proto_tree_add_item(tree, hf_mac_lte_pch_pdu,
tvb, offset, -1, ENC_NA);
+ /* Get number of paging IDs for tap */
+ tap_info->number_of_paging_ids = ((tvb_get_ntohs(tvb, offset) >> 7) & 0x000f) + 1;
+
if (global_mac_lte_attempt_rrc_decode) {
/* Attempt to decode payload using LTE RRC dissector */
@@ -4612,7 +4615,7 @@ void dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case P_RNTI:
/* PCH PDU */
- dissect_pch(tvb, pinfo, mac_lte_tree, pdu_ti, offset, p_mac_lte_info->direction);
+ dissect_pch(tvb, pinfo, mac_lte_tree, pdu_ti, offset, p_mac_lte_info->direction, tap_info);
break;
case RA_RNTI:
diff --git a/epan/dissectors/packet-mac-lte.h b/epan/dissectors/packet-mac-lte.h
index 6c0ff5b7d3..410840e541 100644
--- a/epan/dissectors/packet-mac-lte.h
+++ b/epan/dissectors/packet-mac-lte.h
@@ -200,6 +200,7 @@ typedef struct mac_lte_tap_info {
guint32 bytes_for_lcid[11];
guint32 sdus_for_lcid[11];
guint8 number_of_rars;
+ guint8 number_of_paging_ids;
/* Number of padding bytes includes padding subheaders and trailing padding */
guint16 padding_bytes;