diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-09-17 20:24:45 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-09-17 20:24:45 +0000 |
commit | 185d51c9db473a082d14ab5aa25c039c235d9a44 (patch) | |
tree | 7ea6a906a1c911cfcd8d006480fe99253adef350 /packet-smpp.c | |
parent | a1ebf3a9b72bac49c9bbc58932a419f2d3285ee4 (diff) |
From Olivier Biot: put a summary into the top-level SMPP item in the
protocol tree.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8489 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-smpp.c')
-rw-r--r-- | packet-smpp.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packet-smpp.c b/packet-smpp.c index 35b284ed96..83c3f17cdb 100644 --- a/packet-smpp.c +++ b/packet-smpp.c @@ -8,7 +8,7 @@ * Data Coding Scheme decoding for GSM (SMS and CBS), * provided by Olivier Biot. * - * $Id: packet-smpp.c,v 1.18 2003/09/04 18:59:21 guy Exp $ + * $Id: packet-smpp.c,v 1.19 2003/09/17 20:24:45 guy Exp $ * * Note on SMS Message reassembly * ------------------------------ @@ -1982,12 +1982,19 @@ dissect_smpp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) 0, 4, command_length); proto_tree_add_uint(smpp_tree, hf_smpp_command_id, tvb, 4, 4, command_id); + proto_item_append_text (ti, ", %s", + match_strval (command_id, vals_command_id)); /* Status is only meaningful with responses */ - if (command_id & 0x80000000) + if (command_id & 0x80000000) { proto_tree_add_uint(smpp_tree, hf_smpp_command_status, tvb, 8, 4, command_status); + proto_item_append_text (ti, ": \"%s\"", + match_strval (command_status, vals_command_status)); + } proto_tree_add_uint(smpp_tree, hf_smpp_sequence_number, tvb, 12, 4, sequence_number); + proto_item_append_text (ti, ", Seq: %u, Len: %u", + sequence_number, command_length); /* * End of header. Don't dissect variable part if it is shortened. */ |