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 /epan/dissectors/packet-iax2.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 'epan/dissectors/packet-iax2.c')
-rw-r--r-- | epan/dissectors/packet-iax2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c index b563689325..c1dd716e78 100644 --- a/epan/dissectors/packet-iax2.c +++ b/epan/dissectors/packet-iax2.c @@ -2429,9 +2429,6 @@ iax_init_protocol(void) circuitcount = 0; iax_fid_table = g_hash_table_new(g_direct_hash, g_direct_equal); - - reassembly_table_init(&iax_reassembly_table, - &addresses_reassembly_table_functions); } static void @@ -2439,7 +2436,6 @@ iax_cleanup_protocol(void) { g_hash_table_destroy(iax_circuit_hashtab); g_hash_table_destroy(iax_fid_table); - reassembly_table_destroy(&iax_reassembly_table); } @@ -3210,6 +3206,9 @@ proto_register_iax2(void) to clear out our hash tables etc */ register_init_routine(&iax_init_protocol); register_cleanup_routine(&iax_cleanup_protocol); + reassembly_table_register(&iax_reassembly_table, + &addresses_reassembly_table_functions); + iax2_tap = register_tap("IAX2"); } |