aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-openvpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-openvpn.c')
-rw-r--r--epan/dissectors/packet-openvpn.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/epan/dissectors/packet-openvpn.c b/epan/dissectors/packet-openvpn.c
index df7af4982e..3fb2ca98a0 100644
--- a/epan/dissectors/packet-openvpn.c
+++ b/epan/dissectors/packet-openvpn.c
@@ -145,19 +145,6 @@ static const fragment_items openvpn_frag_items = {
"Message fragments"
};
-static void
-openvpn_reassemble_init(void)
-{
- reassembly_table_init(&msg_reassembly_table,
- &addresses_reassembly_table_functions);
-}
-
-static void
-openvpn_reassemble_cleanup(void)
-{
- reassembly_table_destroy(&msg_reassembly_table);
-}
-
/* we check the leading 4 byte of a suspected hmac for 0x00 bytes,
if more than 1 byte out of the 4 provided contains 0x00, the
hmac is considered not valid, which suggests that no tls auth is used.
@@ -611,8 +598,8 @@ proto_register_openvpn(void)
openvpn_udp_handle = register_dissector("openvpn.udp", dissect_openvpn_udp, proto_openvpn);
openvpn_tcp_handle = register_dissector("openvpn.tcp", dissect_openvpn_tcp, proto_openvpn);
- register_init_routine(&openvpn_reassemble_init);
- register_cleanup_routine(&openvpn_reassemble_cleanup);
+ reassembly_table_register(&msg_reassembly_table,
+ &addresses_reassembly_table_functions);
openvpn_module = prefs_register_protocol(proto_openvpn, NULL);