diff options
author | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-21 12:35:50 +0000 |
---|---|---|
committer | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-21 12:35:50 +0000 |
commit | 2f0eced54f79c1530a2c9ab16a8dcdb0a4705a67 (patch) | |
tree | 77763560bc93d676bf250f80c3a62dcfff3cee17 /epan/dissectors/packet-mac-lte.c | |
parent | 30e5d5a0619be72239c2078766a77199a01294c0 (diff) |
Also show number of RAR bodies/entries in stats.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28104 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-mac-lte.c')
-rw-r--r-- | epan/dissectors/packet-mac-lte.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c index 383a73514d..d921fd6583 100644 --- a/epan/dissectors/packet-mac-lte.c +++ b/epan/dissectors/packet-mac-lte.c @@ -419,7 +419,7 @@ static gint dissect_rar_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre /* Dissect Random Access Reponse (RAR) PDU */ static void dissect_rar(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, - gint offset, mac_lte_info *p_mac_lte_info) + gint offset, mac_lte_info *p_mac_lte_info, mac_lte_tap_info *tap_info) { gint number_of_rars = 0; /* No of RAR bodies expected following headers */ gboolean backoff_indicator_seen = FALSE; @@ -524,6 +524,9 @@ static void dissect_rar(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, for (n=0; n < number_of_rars; n++) { offset = dissect_rar_entry(tvb, pinfo, tree, offset); } + + /* Update TAP info */ + tap_info->number_of_rars += number_of_rars; } @@ -1177,7 +1180,7 @@ void dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) case RA_RNTI: /* RAR PDU */ - dissect_rar(tvb, pinfo, mac_lte_tree, offset, p_mac_lte_info); + dissect_rar(tvb, pinfo, mac_lte_tree, offset, p_mac_lte_info, &tap_info); break; case C_RNTI: @@ -1202,9 +1205,9 @@ void dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } /* Queue tap info */ - if (!pinfo->in_error_pkt) { - tap_queue_packet(mac_lte_tap, pinfo, &tap_info); - } + /* TODO: if any of above (esp RRC dissection) throws exception, this isn't reached, + but if call too early, won't have details... */ + tap_queue_packet(mac_lte_tap, pinfo, &tap_info); } |