forked from osmocom/wireshark
Only add the priority level if it is set inside valid range.
svn path=/trunk/; revision=39997
This commit is contained in:
parent
d8027c4194
commit
20019f77ed
|
@ -2454,9 +2454,11 @@ static void dissect_rlc_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
PROTO_ITEM_SET_GENERATED(ti);
|
||||
}
|
||||
|
||||
ti = proto_tree_add_uint(context_tree, hf_rlc_lte_context_priority,
|
||||
tvb, 0, 0, p_rlc_lte_info->priority);
|
||||
PROTO_ITEM_SET_GENERATED(ti);
|
||||
if ((p_rlc_lte_info->priority >= 1) && (p_rlc_lte_info->priority <=16)) {
|
||||
ti = proto_tree_add_uint(context_tree, hf_rlc_lte_context_priority,
|
||||
tvb, 0, 0, p_rlc_lte_info->priority);
|
||||
PROTO_ITEM_SET_GENERATED(ti);
|
||||
}
|
||||
|
||||
ti = proto_tree_add_uint(context_tree, hf_rlc_lte_context_channel_type,
|
||||
tvb, 0, 0, p_rlc_lte_info->channelType);
|
||||
|
|
Loading…
Reference in New Issue