aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-diameter_3gpp.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2015-10-01 18:02:41 +0200
committerAnders Broman <a.broman58@gmail.com>2015-10-01 16:06:13 +0000
commitba50bf97acdd353745c9f10ec1d68e96ea3d745f (patch)
tree9c1eac432487e731f8a1ffbee39a9ffbd8e00b81 /epan/dissectors/packet-diameter_3gpp.c
parentc53d2f0d0e33de4419b93637d23e04bbcb59af1b (diff)
[Diameter] Add dissection of 3GPP AVP 655 refactor to use
proto_tree_add_bitmask_with_flags() in some cases. Change-Id: I280c8f33aeacb84561243b38497276099621bfe9 Reviewed-on: https://code.wireshark.org/review/10729 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-diameter_3gpp.c')
-rw-r--r--epan/dissectors/packet-diameter_3gpp.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/epan/dissectors/packet-diameter_3gpp.c b/epan/dissectors/packet-diameter_3gpp.c
index b1c792f819..7d4799b589 100644
--- a/epan/dissectors/packet-diameter_3gpp.c
+++ b/epan/dissectors/packet-diameter_3gpp.c
@@ -770,6 +770,28 @@ dissect_diameter_3gpp_msisdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *
return length;
}
+/* AVP Code: 655 SAR-Flags
+* TGPP.xml
+* IMS Cx Dx AVPS 3GPP TS 29.229
+*/
+
+static int
+dissect_diameter_3gpp_sar_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
+{
+ proto_item *item;
+ proto_tree *sub_tree;
+ int offset = 0;
+ guint32 bit_offset;
+
+ item = proto_tree_add_item(tree, hf_diameter_3gpp_uar_flags_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
+ sub_tree = proto_item_add_subtree(item, diameter_3gpp_uar_flags_ett);
+
+ //proto_tree_add_bitmask(proto_tree *tree, tvbuff_t *tvb, const guint offset,
+ // const int hf_hdr, const gint ett, const int **fields, const guint encoding);
+
+ return offset;
+}
+
/* AVP Code: 702 User-Data
* TGPPSh.xml
* The AVP codes from 709 to799 are reserved for TS 29.329
@@ -1449,6 +1471,9 @@ proto_reg_handoff_diameter_3gpp(void)
/* AVP Code: 641 Contact */
dissector_add_uint("diameter.3gpp", 641, new_create_dissector_handle(dissect_diameter_3gpp_contact, proto_diameter_3gpp));
+ /* AVP Code: 655 SAR-Flags */
+ dissector_add_uint("diameter.3gpp", 655, new_create_dissector_handle(dissect_diameter_3gpp_sar_flags, proto_diameter_3gpp));
+
/* AVP Code: 701 MSISDN */
dissector_add_uint("diameter.3gpp", 701, new_create_dissector_handle(dissect_diameter_3gpp_msisdn, proto_diameter_3gpp));