diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-03-07 16:32:17 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-03-07 15:35:45 +0000 |
commit | 1f005743202a56bff48afc9899b6f188e1937988 (patch) | |
tree | 214ed68a6a1841c081ad12b43c060e791b09608c /epan/dissectors/packet-gsm_sms.c | |
parent | 07d361010d79866bfbb51343f4c7c05b095174d0 (diff) |
GSM SMS: minor fixes to DELIVER, DELIVER REPORT and STATUS_REPORT dissection
Change-Id: I9bf3b0529e353ff9c2e936e75e86fffae17506fd
Reviewed-on: https://code.wireshark.org/review/7579
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gsm_sms.c')
-rw-r--r-- | epan/dissectors/packet-gsm_sms.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_sms.c b/epan/dissectors/packet-gsm_sms.c index 935b6a8213..8c8dfb5b5e 100644 --- a/epan/dissectors/packet-gsm_sms.c +++ b/epan/dissectors/packet-gsm_sms.c @@ -96,6 +96,7 @@ static gint hf_gsm_sms_ud_multiple_messages_msg_part = -1; static gint hf_gsm_sms_tp_mti_up = -1; static gint hf_gsm_sms_tp_mti_down = -1; static gint hf_gsm_sms_tp_mms = -1; +static gint hf_gsm_sms_tp_lp = -1; static gint hf_gsm_sms_tp_vpf = -1; static gint hf_gsm_sms_tp_sri = -1; static gint hf_gsm_sms_tp_srr = -1; @@ -385,6 +386,11 @@ static const true_false_string mms_bool_strings = { "More messages are waiting for the MS in this SC" }; +static const true_false_string lp_bool_strings = { + "The message has either been forwarded or is a spawned message", + "The message has not been forwarded and is not a spawned message" +}; + static const true_false_string sri_bool_strings = { "A status report shall be returned to the SME", "A status report shall not be returned to the SME" @@ -2028,6 +2034,7 @@ dis_msg_deliver(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 off proto_tree_add_item(tree, hf_gsm_sms_tp_rp, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_udhi, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_sri, tvb, offset, 1, ENC_BIG_ENDIAN); + proto_tree_add_item(tree, hf_gsm_sms_tp_lp, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_mms, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_mti_down, tvb, offset, 1, ENC_BIG_ENDIAN); @@ -2088,7 +2095,6 @@ dis_msg_deliver_report(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guin udhi = oct & 0x40; proto_tree_add_item(tree, hf_gsm_sms_tp_udhi, tvb, offset, 1, ENC_BIG_ENDIAN); - proto_tree_add_item(tree, hf_gsm_sms_tp_mms, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_mti_up, tvb, offset, 1, ENC_BIG_ENDIAN); if (length < 2) @@ -2378,6 +2384,7 @@ dis_msg_status_report(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint proto_tree_add_item(tree, hf_gsm_sms_tp_udhi, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_srq, tvb, offset, 1, ENC_BIG_ENDIAN); + proto_tree_add_item(tree, hf_gsm_sms_tp_lp, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_mms, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_sms_tp_mti_down, tvb, offset, 1, ENC_BIG_ENDIAN); @@ -2750,6 +2757,11 @@ proto_register_gsm_sms(void) FT_BOOLEAN, 8, TFS(&mms_bool_strings), 0x04, "TP-More-Messages-to-Send", HFILL } }, + { &hf_gsm_sms_tp_lp, + { "TP-LP", "gsm_sms.tp-lp", + FT_BOOLEAN, 8, TFS(&lp_bool_strings), 0x08, + "TP-Loop-Prevention", HFILL } + }, { &hf_gsm_sms_tp_sri, { "TP-SRI", "gsm_sms.tp-sri", FT_BOOLEAN, 8, TFS(&sri_bool_strings), 0x20, |