diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-12-20 20:13:28 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-12-21 04:14:24 +0000 |
commit | 2b006ad30e38b015cfd13c33b265e2f48ddf36b2 (patch) | |
tree | c3c9a0de47a59d414477143a7ad24be694f28672 /epan/dissectors/packet-tipc.c | |
parent | 81798009b97549ad0879d1c01a3b9c60ed726ed9 (diff) |
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 'epan/dissectors/packet-tipc.c')
-rw-r--r-- | epan/dissectors/packet-tipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tipc.c b/epan/dissectors/packet-tipc.c index cb1a0b8953..36814259f6 100644 --- a/epan/dissectors/packet-tipc.c +++ b/epan/dissectors/packet-tipc.c @@ -2938,7 +2938,7 @@ proto_register_tipc(void) "TIPC port name type", FT_UINT32, BASE_DEC); /* make heuristic dissectors possible */ - register_heur_dissector_list("tipc", &tipc_heur_subdissector_list); + tipc_heur_subdissector_list = register_heur_dissector_list("tipc"); /* Register by name */ new_register_dissector("tipc", dissect_tipc, proto_tipc); |