diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-11-25 11:19:03 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-11-25 11:19:03 +0000 |
commit | 899155a563032bb7f610309589af2f6a68d58f16 (patch) | |
tree | 479078ce1081f31c41577b534be7a3d4890a889f /epan/dissectors/packet-mac-lte.c | |
parent | a21d6f0a96aa3961ea938e52955153f5bc7dd140 (diff) |
Add the reason for a UL ReTx (PDCCH retx grant or PHICH NACK).
svn path=/trunk/; revision=40001
Diffstat (limited to 'epan/dissectors/packet-mac-lte.c')
-rw-r--r-- | epan/dissectors/packet-mac-lte.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c index 542d0da9e2..c78b30b10e 100644 --- a/epan/dissectors/packet-mac-lte.c +++ b/epan/dissectors/packet-mac-lte.c @@ -61,6 +61,7 @@ static int hf_mac_lte_context_length = -1; static int hf_mac_lte_context_ul_grant_size = -1; static int hf_mac_lte_context_bch_transport_channel = -1; static int hf_mac_lte_context_retx_count = -1; +static int hf_mac_lte_context_retx_reason = -1; static int hf_mac_lte_context_crc_status = -1; static int hf_mac_lte_context_rapid = -1; static int hf_mac_lte_context_rach_attempt_number = -1; @@ -526,7 +527,12 @@ static const value_string predefined_frame_vals[] = { 0, NULL } }; - +static const value_string ul_retx_grant_vals[] = +{ + { 0, "PDCCH ReTx"}, + { 1, "PHICH NACK"}, + { 0, NULL } +}; /**************************************************************************/ /* Preferences state */ @@ -3449,6 +3455,7 @@ void dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Retx count goes in top-level tree to make it more visible */ if (p_mac_lte_info->reTxCount) { + proto_item *retx_reason_ti; retx_ti = proto_tree_add_uint(mac_lte_tree, hf_mac_lte_context_retx_count, tvb, 0, 0, p_mac_lte_info->reTxCount); PROTO_ITEM_SET_GENERATED(retx_ti); @@ -3458,6 +3465,10 @@ void dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) "UE %u: UL MAC frame ReTX no. %u", p_mac_lte_info->ueid, p_mac_lte_info->reTxCount); } + + retx_reason_ti = proto_tree_add_uint(mac_lte_tree, hf_mac_lte_context_retx_reason, + tvb, 0, 0, p_mac_lte_info->isPHICHNACK); + PROTO_ITEM_SET_GENERATED(retx_reason_ti); } if (p_mac_lte_info->crcStatusValid) { @@ -3749,6 +3760,12 @@ void proto_register_mac_lte(void) "Number of times this PDU has been retransmitted", HFILL } }, + { &hf_mac_lte_context_retx_reason, + { "ReTX reason", + "mac-lte.retx-reason", FT_UINT8, BASE_DEC, VALS(ul_retx_grant_vals), 0x0, + "Type of UL ReTx grant", HFILL + } + }, { &hf_mac_lte_context_crc_status, { "CRC Status", "mac-lte.crc-status", FT_UINT8, BASE_DEC, VALS(crc_status_vals), 0x0, |