From b780bb19bdf46d100fc6aa9afda8049b0d371730 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Thu, 21 Mar 2019 10:59:42 +0100 Subject: [PATCH] NAS-5GS: Dissect Packet filter contents Single remote port type. Change-Id: I77c79d477af3575428d9d6816f07b54c3302b513 Reviewed-on: https://code.wireshark.org/review/32496 Petri-Dish: Anders Broman Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-nas_5gs.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/epan/dissectors/packet-nas_5gs.c b/epan/dissectors/packet-nas_5gs.c index 71aef4a170..6b4bde7e8b 100644 --- a/epan/dissectors/packet-nas_5gs.c +++ b/epan/dissectors/packet-nas_5gs.c @@ -327,6 +327,8 @@ static int hf_nas_5gs_acces_tech_o2_b5 = -1; static int hf_nas_5gs_acces_tech_o2_b4 = -1; static int hf_nas_5gs_acces_tech_o2_b3 = -1; static int hf_nas_5gs_acces_tech_o2_b2 = -1; +static int hf_nas_5gs_single_port_type = -1; + static expert_field ei_nas_5gs_extraneous_data = EI_INIT; static expert_field ei_nas_5gs_unknown_pd = EI_INIT; @@ -2985,6 +2987,12 @@ de_nas_5gs_sm_qos_rules(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, curr_offset++; pfc_len = 1; 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); + curr_offset += 2; + pfc_len = 2; + break; default: proto_tree_add_expert(sub_tree3, pinfo, &ei_nas_5gs_not_diss, tvb, curr_offset, pf_len); curr_offset += pf_len; @@ -6792,6 +6800,11 @@ proto_register_nas_5gs(void) FT_BOOLEAN, 8, TFS(&tfs_selected_not_selected), 0x04, NULL, HFILL } }, + { &hf_nas_5gs_single_port_type, + { "Port number", "nas_5gs.port_type", + FT_UINT16, BASE_DEC, NULL, 0x0, + NULL, HFILL } + }, }; guint i;