aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-diameter_3gpp.c
diff options
context:
space:
mode:
authorAndersBroman <a.broman@bredband.net>2014-03-16 18:57:18 +0100
committerAnders Broman <a.broman58@gmail.com>2014-03-16 19:15:54 +0000
commitfcf1c44b501f1d3fb807d276d8b11f57f2746b7f (patch)
treeda39946b865b87034d4e1443cd6ee8138bb5ffcd /epan/dissectors/packet-diameter_3gpp.c
parent5f508e8b29e99a3c2049a2b8912ae07e5cce21c6 (diff)
Make the avp_str available to sub dissectors and Let the subdissector have
precedence filling in the avp_item string. Use that in a couple of places. Change-Id: I1af7a1ca4c14fb56ddeaab336202e6c2a18e556b Reviewed-on: https://code.wireshark.org/review/699 Reviewed-by: Michael Mann <mmann78@netscape.net> 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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-diameter_3gpp.c b/epan/dissectors/packet-diameter_3gpp.c
index 00e5dd7aa1..303d3a4218 100644
--- a/epan/dissectors/packet-diameter_3gpp.c
+++ b/epan/dissectors/packet-diameter_3gpp.c
@@ -187,6 +187,7 @@ dissect_diameter_3gpp_ms_timezone(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
int offset = 0;
guint8 oct;
char sign;
+ diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
/* 3GPP TS 23.040 version 6.6.0 Release 6
* 9.2.3.11 TP-Service-Centre-Time-Stamp (TP-SCTS)
@@ -208,6 +209,12 @@ dissect_diameter_3gpp_ms_timezone(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
proto_tree_add_text(tree, tvb, offset, 1, "%s", val_to_str_const(oct, daylight_saving_time_vals, "Unknown"));
offset++;
+ diam_sub_dis->avp_str = wmem_strdup_printf(wmem_packet_scope(), "Timezone: GMT %c %d hours %d minutes %s",
+ sign,
+ oct / 4,
+ oct % 4 * 15,
+ val_to_str_const(oct, daylight_saving_time_vals, "Unknown"));
+
return offset;
}