aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-websocket.c
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 /epan/dissectors/packet-websocket.c
parent81798009b97549ad0879d1c01a3b9c60ed726ed9 (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-websocket.c')
-rw-r--r--epan/dissectors/packet-websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-websocket.c b/epan/dissectors/packet-websocket.c
index 9b6a3d26cc..b29a1c582d 100644
--- a/epan/dissectors/packet-websocket.c
+++ b/epan/dissectors/packet-websocket.c
@@ -601,7 +601,7 @@ proto_register_websocket(void)
* this table using the standard heur_dissector_add()
* function.
*/
- register_heur_dissector_list("ws", &heur_subdissector_list);
+ heur_subdissector_list = register_heur_dissector_list("ws");
port_subdissector_table = register_dissector_table("ws.port",
"TCP port for protocols using WebSocket", FT_UINT16, BASE_DEC);