aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nas_5gs.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2019-04-23 15:41:50 +0200
committerAnders Broman <a.broman58@gmail.com>2019-04-23 14:08:00 +0000
commit4dfa358eda51564a6b48d24ebd338e982cf2e87b (patch)
tree1d92746beac11a84d1db6d2a8338e6f7e1118429 /epan/dissectors/packet-nas_5gs.c
parenta44e838158ab1fab51235d13445b036ca037b295 (diff)
nas-5gs: Fix ecoding of Authorised QoS rules
Bug: 15697 Change-Id: Iea111a232c728fcca925260cfa7c7173337c91e2 Reviewed-on: https://code.wireshark.org/review/32959 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-nas_5gs.c')
-rw-r--r--epan/dissectors/packet-nas_5gs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-nas_5gs.c b/epan/dissectors/packet-nas_5gs.c
index 138cf5d3e7..fb06f616f1 100644
--- a/epan/dissectors/packet-nas_5gs.c
+++ b/epan/dissectors/packet-nas_5gs.c
@@ -3042,6 +3042,12 @@ de_nas_5gs_sm_qos_rules(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
curr_offset++;
pfc_len = 1;
break;
+ case 64:
+ /* Single local port type */
+ proto_tree_add_item(sub_tree3, hf_nas_5gs_single_port_type, tvb, curr_offset, 2, ENC_BIG_ENDIAN);
+ curr_offset += 2;
+ pfc_len = 2;
+ break;
case 80:
/* Single remote port type */
proto_tree_add_item(sub_tree3, hf_nas_5gs_single_port_type, tvb, curr_offset, 2, ENC_BIG_ENDIAN);
@@ -3068,7 +3074,7 @@ de_nas_5gs_sm_qos_rules(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
* For the "delete existing QoS rule" operation, the QoS rule precedence value field shall not be included.
* For the "create new QoS rule" operation, the QoS rule precedence value field shall be included.
*/
- if (qos_rule_id != 2) { /* Delete existing QoS rule */
+ if (rop != 2) { /* Delete existing QoS rule */
proto_tree_add_item(sub_tree, hf_nas_5gs_sm_qos_rule_precedence, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
curr_offset++;
}