diff options
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) |