diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-03-04 12:32:50 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-03-04 12:19:07 +0000 |
commit | 3a4b311e8b4a649ac1553e064b632a2b2fbb391b (patch) | |
tree | fe60292d764b67527afbc8defafe8d3f8700823b /asn1/gsm_map/packet-gsm_map-template.c | |
parent | 7a008e4f81d65ceffd2d746b187706320d292c9a (diff) | |
download | wireshark-3a4b311e8b4a649ac1553e064b632a2b2fbb391b.tar.gz |
When dissecting GSM MAPv1/v2 messages, display opcode 44 or 46 as forwardSM
Fixes bug 9829
Change-Id: Ib56bc7dc79ca27667fb89691817f6e568006d3a8
Reviewed-on: https://code.wireshark.org/review/494
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1/gsm_map/packet-gsm_map-template.c')
-rw-r--r-- | asn1/gsm_map/packet-gsm_map-template.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/asn1/gsm_map/packet-gsm_map-template.c b/asn1/gsm_map/packet-gsm_map-template.c index 342d9808ec..d930acd711 100644 --- a/asn1/gsm_map/packet-gsm_map-template.c +++ b/asn1/gsm_map/packet-gsm_map-template.c @@ -225,7 +225,7 @@ static guint8 sms_encoding; static int dissect_invokeData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx); static int dissect_returnResultData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx); static int dissect_returnErrorData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx); -const gchar* gsm_map_opr_code(guint32 val); +const gchar* gsm_map_opr_code(guint32 val, proto_item *item); /* Value strings */ @@ -918,13 +918,14 @@ static const true_false_string gsm_map_Ss_Status_a_values = { * Translate the MAP operation code value to a text string * Take into account the MAP version for ForwardSM */ -const gchar* gsm_map_opr_code(guint32 val) { +const gchar* gsm_map_opr_code(guint32 val, proto_item *item) { switch (val) { case 44: /*mt-forwardSM*/ /* FALLTHRU */ case 46: /*mo-forwardSM*/ /* FALLTHRU */ if (application_context_version < 3) { + proto_item_set_text(item, "%s (%d)", val_to_str_const(val, gsm_map_V1V2_opr_code_strings, "Unknown GSM-MAP opcode"), val); return val_to_str_const(val, gsm_map_V1V2_opr_code_strings, "Unknown GSM-MAP opcode"); } /* Else use the default map operation translation */ |