From 4478d711e5f5ebf73eab3299450ba9b67bce612b Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 7 Sep 2011 20:23:33 +0200 Subject: SCCP: add a preference to display the raw SCCP payload as hex --- epan/dissectors/packet-sccp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/epan/dissectors/packet-sccp.c b/epan/dissectors/packet-sccp.c index e7c0377ec8..80a186cde1 100644 --- a/epan/dissectors/packet-sccp.c +++ b/epan/dissectors/packet-sccp.c @@ -689,6 +689,7 @@ static int hf_sccp_xudt_msg_reassembled_in = -1; static int hf_sccp_xudt_msg_reassembled_length = -1; static int hf_sccp_assoc_msg = -1; static int hf_sccp_assoc_id = -1; +static int hf_sccp_data_param = -1; /* Initialize the subtree pointers */ static gint ett_sccp = -1; @@ -1791,6 +1792,8 @@ dissect_sccp_data_param(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) const mtp3_addr_pc_t* dpc = NULL; const mtp3_addr_pc_t* opc = NULL; + proto_tree_add_item(tree, hf_sccp_data_param, tvb, 0, tvb_length(tvb), TRUE); + if (trace_sccp && assoc && assoc != &no_assoc) { pinfo->sccp_info = assoc->curr_msg; } else { @@ -3401,6 +3404,10 @@ proto_register_sccp(void) {"Message in frame", "sccp.assoc.msg", FT_FRAMENUM, BASE_NONE, NULL, 0x00, NULL, HFILL } }, + {&hf_sccp_data_param, + {"Data parameter", "sccp.data_param", + FT_NONE, BASE_NONE, NULL, 0x00, NULL, HFILL } + }, }; -- cgit v1.2.3