aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS4
-rw-r--r--epan/dissectors/packet-gsm_sms.c12
2 files changed, 12 insertions, 4 deletions
diff --git a/AUTHORS b/AUTHORS
index be7a644775..63b7e03ddd 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -2240,6 +2240,10 @@ Susanne Edlund <Susanne.Edlund [AT] ericsson.com> {
NSIP protocol support
}
+Victor Stratan <hidralisk [AT] yahoo.com> {
+ GSM SMS enhancements
+}
+
And assorted fixes and enhancements by the people listed above
and by:
diff --git a/epan/dissectors/packet-gsm_sms.c b/epan/dissectors/packet-gsm_sms.c
index 958bacc932..9a3cc73d80 100644
--- a/epan/dissectors/packet-gsm_sms.c
+++ b/epan/dissectors/packet-gsm_sms.c
@@ -730,6 +730,7 @@ static void
dis_field_scts_aux(tvbuff_t *tvb, proto_tree *tree, guint32 offset)
{
guint8 oct, oct2, oct3;
+ char sign;
oct = tvb_get_guint8(tvb, offset);
@@ -766,10 +767,13 @@ dis_field_scts_aux(tvbuff_t *tvb, proto_tree *tree, guint32 offset)
oct = tvb_get_guint8(tvb, offset);
+ sign = (oct & 0x08)?'-':'+';
+ oct = ((oct >> 4) + (oct & 0x07) * 10) * 15;
+
proto_tree_add_text(tree,
tvb, offset, 1,
- "Timezone %d",
- oct);
+ "Timezone: GMT %c %d hours %d minutes",
+ sign, oct / 60, oct % 60);
}
/* 9.2.3.11 */
@@ -2415,9 +2419,9 @@ dis_msg_command(tvbuff_t *tvb, proto_tree *tree, guint32 offset)
oct = tvb_get_guint8(tvb, offset);
- DIS_FIELD_SRR(tree, 0x20, offset);
+ DIS_FIELD_UDHI(tree, 0x40, offset, udhi);
- DIS_FIELD_UDHI(tree, 0x04, offset, udhi);
+ DIS_FIELD_SRR(tree, 0x20, offset);
DIS_FIELD_MTI(tree, 0x03, offset);