From 2cfda31ff09893bd8c59acabc8faad7227f52ede Mon Sep 17 00:00:00 2001 From: AndersBroman Date: Tue, 20 May 2014 12:54:20 +0200 Subject: Change the signature of dissector_try_heuristic() to return hdtbl_entry which can be used to call the found heuristic dissector on the next pass. Introduce call_heur_dissector_direct() to be used to call a heuristic dissector which accepted the frame on the first pass. Change-Id: I524edd717b7d92b510bd60acfeea686d5f2b4582 Reviewed-on: https://code.wireshark.org/review/1697 Reviewed-by: Pascal Quantin Reviewed-by: Anders Broman --- epan/dissectors/packet-sua.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-sua.c') diff --git a/epan/dissectors/packet-sua.c b/epan/dissectors/packet-sua.c index 40b28b8631..155d5c064e 100644 --- a/epan/dissectors/packet-sua.c +++ b/epan/dissectors/packet-sua.c @@ -2156,6 +2156,8 @@ dissect_sua_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *sua_t tvbuff_t *common_header_tvb; tvbuff_t *parameters_tvb; tvbuff_t *data_tvb = NULL; + + heur_dtbl_entry_t *hdtbl_entry; #if 0 proto_tree *assoc_tree; #endif @@ -2277,7 +2279,7 @@ dissect_sua_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *sua_t !dissector_try_uint(sccp_ssn_dissector_table, source_ssn, data_tvb, pinfo, tree))) { /* try heuristic subdissector list to see if there are any takers */ - if (dissector_try_heuristic(heur_subdissector_list, data_tvb, pinfo, tree, NULL)) { + if (dissector_try_heuristic(heur_subdissector_list, data_tvb, pinfo, tree, &hdtbl_entry, NULL)) { return; } /* No sub-dissection occurred, treat it as raw data */ -- cgit v1.2.3