summaryrefslogtreecommitdiff
path: root/plugins/ethercat
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-20 20:13:28 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-21 04:14:24 +0000
commit2b006ad30e38b015cfd13c33b265e2f48ddf36b2 (patch)
treec3c9a0de47a59d414477143a7ad24be694f28672 /plugins/ethercat
parent81798009b97549ad0879d1c01a3b9c60ed726ed9 (diff)
downloadwireshark-2b006ad30e38b015cfd13c33b265e2f48ddf36b2.tar.gz
Have a heur_dissector_list_t be an opaque handle.
This allows dissector lists to be looked up by name, so they can be shared by multiple dissectors. (This means that there's no "udplite" heuristic dissector list, but there shouldn't be one - protocols can run atop UDP or UDPLite equally well, and they share a port namespace and uint dissector table, so they should share a heuristic dissector table as well.) Change-Id: Ifb2d2c294938c06d348a159adea7a57db8d770a7 Reviewed-on: https://code.wireshark.org/review/5936 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins/ethercat')
-rw-r--r--plugins/ethercat/packet-ethercat-datagram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ethercat/packet-ethercat-datagram.c b/plugins/ethercat/packet-ethercat-datagram.c
index 529fbffea0..ae9c0328d1 100644
--- a/plugins/ethercat/packet-ethercat-datagram.c
+++ b/plugins/ethercat/packet-ethercat-datagram.c
@@ -1703,7 +1703,7 @@ void proto_register_ecat(void)
proto_register_subtree_array(ett, array_length(ett));
/* Sub dissector code */
- register_heur_dissector_list("ecat.data", &heur_subdissector_list);
+ heur_subdissector_list = register_heur_dissector_list("ecat.data");
}
/* The registration hand-off routing */