diff options
author | Michael Mann <mmann78@netscape.net> | 2017-01-28 19:53:36 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-29 13:29:04 +0000 |
commit | af54b292e60fcdd8d03ec583e2b46c9c51f259a5 (patch) | |
tree | 67a4b61fd3e71ada67f2c27092a6849424759263 /plugins/opcua/opcua.c | |
parent | ed8ac81497c890bc82f161be727c0bb5285dcf12 (diff) |
Register reassembly tables
Register all reassembly tables with a central unit, allowing the
central unit to have the callback that initializes and destroys
the reassembly tables, rather than have dissectors do it individually.
Change-Id: Ic92619c06fb5ba6f1c3012f613cae14982e101d4
Reviewed-on: https://code.wireshark.org/review/19834
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins/opcua/opcua.c')
-rw-r--r-- | plugins/opcua/opcua.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/plugins/opcua/opcua.c b/plugins/opcua/opcua.c index 1341b96882..08f1051704 100644 --- a/plugins/opcua/opcua.c +++ b/plugins/opcua/opcua.c @@ -355,19 +355,6 @@ static int dissect_opcua(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo return tvb_reported_length(tvb); } -static void -init_opcua(void) -{ - reassembly_table_init(&opcua_reassembly_table, - &addresses_reassembly_table_functions); -} - -static void -cleanup_opcua(void) -{ - reassembly_table_destroy(&opcua_reassembly_table); -} - /** plugin entry functions. * This registers the OpcUa protocol. */ @@ -412,8 +399,8 @@ void proto_register_opcua(void) proto_register_subtree_array(ett, array_length(ett)); proto_register_field_array(proto_opcua, hf, array_length(hf)); - register_init_routine(&init_opcua); - register_cleanup_routine(&cleanup_opcua); + reassembly_table_register(&opcua_reassembly_table, + &addresses_reassembly_table_functions); } void proto_reg_handoff_opcua(void) |