aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtpv2.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2020-03-12 14:32:26 +0100
committerAnders Broman <a.broman58@gmail.com>2020-03-12 15:25:12 +0000
commit16adaf33b494d26ea7a643cf701c2080120a851a (patch)
tree6a10f4adae5b29ff0331876eb06c9d8eaeb0d0eb /epan/dissectors/packet-gtpv2.c
parent29614e007e497fb394a7b827ab2e0436789c541c (diff)
GTPv2: Dissect Core Network Restrictions and UE Radio Capability ID.
Change-Id: I91714384688a554cbca82a0ae887e18f6304e0c1 Reviewed-on: https://code.wireshark.org/review/36379 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-gtpv2.c')
-rw-r--r--epan/dissectors/packet-gtpv2.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c
index dc61b655c4..c3cbf30d56 100644
--- a/epan/dissectors/packet-gtpv2.c
+++ b/epan/dissectors/packet-gtpv2.c
@@ -1,7 +1,7 @@
/* packet-gtpv2.c
*
* Routines for GTPv2 dissection
- * Copyright 2009 - 2019, Anders Broman <anders.broman [at] ericsson.com>
+ * Copyright 2009 - 2020, Anders Broman <anders.broman [at] ericsson.com>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
@@ -4761,7 +4761,8 @@ dissect_gtpv2_mm_context_eps_qq(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
If Length of Core Network Restrictions is zero, then the field of Core Network Restrictions
in octets "(l+2) to (l+5)" shall not be present.
*/
- proto_tree_add_expert_format(tree, pinfo, &ei_gtpv2_ie_data_not_dissected, tvb, offset, ie_len, "The rest of the IE not dissected yet");
+ tvbuff_t *new_tvb = tvb_new_subset_length(tvb, offset, ie_len);
+ dissect_diameter_3gpp_core_network_restrictions(new_tvb, pinfo, tree, NULL);
offset += ie_len;
}
@@ -4769,12 +4770,14 @@ dissect_gtpv2_mm_context_eps_qq(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
return;
}
- /* (l+6) Length of UE Radio Capability ID hf_gtpv2_mm_context_ue_radio_cap_len*/
+ /* (l+6) Length of UE Radio Capability ID */
proto_tree_add_item_ret_uint(tree, hf_gtpv2_mm_context_ue_radio_cap_len, tvb, offset, 1, ENC_BIG_ENDIAN, &ie_len);
offset += 1;
if (ie_len) {
- /* (l+7) to z UE Radio Capability ID */
- proto_tree_add_expert_format(tree, pinfo, &ei_gtpv2_ie_data_not_dissected, tvb, offset, ie_len, "The rest of the IE not dissected yet");
+ /* (l+7) to z UE Radio Capability ID
+ * The UE Radio Capability ID is specified in the clause 9.9.3.60 of 3GPP TS24.301
+ */
+ de_nas_5gs_mm_ue_radio_cap_id(tvb, tree, pinfo, offset, ie_len, NULL, 0);
offset += ie_len;
}
if (offset < (gint)length){