From be7d295fbf06788c7fec948cf8755c218ad7c32d Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sat, 11 Jul 2015 17:33:26 -0400 Subject: Add "user presentable" and "unique string ids" to heuristic table entries. This allows better presentation of heuristic dissectors to the end user. Change-Id: I2ff3985ab914e83c2989880cc0c7b9904045b3f6 Reviewed-on: https://code.wireshark.org/review/9602 Petri-Dish: Michael Mann Reviewed-by: Michael Mann --- epan/dissectors/packet-json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-json.c') diff --git a/epan/dissectors/packet-json.c b/epan/dissectors/packet-json.c index d17620a186..0e2b087119 100644 --- a/epan/dissectors/packet-json.c +++ b/epan/dissectors/packet-json.c @@ -646,8 +646,8 @@ proto_reg_handoff_json(void) { dissector_handle_t json_file_handle = new_create_dissector_handle(dissect_json_file, proto_json); - heur_dissector_add("hpfeeds", dissect_json_heur, proto_json); - heur_dissector_add("db-lsp", dissect_json_heur, proto_json); + heur_dissector_add("hpfeeds", dissect_json_heur, "JSON over HPFEEDS", "json_hpfeeds", proto_json); + heur_dissector_add("db-lsp", dissect_json_heur, "JSON over DB-LSP", "json_db_lsp", proto_json); dissector_add_uint("wtap_encap", WTAP_ENCAP_JSON, json_file_handle); dissector_add_string("media_type", "application/json", json_handle); /* RFC 4627 */ -- cgit v1.2.3