summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-02-01 14:22:43 +0100
committerDario Lombardo <lomato@gmail.com>2017-02-02 15:33:20 +0000
commitc0d25e8a5d093c448dde610873d216cf3d3fb060 (patch)
treefb8229fcb0ecdbe1ab09601bb808d1314d5d96e9 /tools
parent577d21e35c1ca19e245014ea2b65d09709c9cca3 (diff)
downloadwireshark-c0d25e8a5d093c448dde610873d216cf3d3fb060.tar.gz
ncp: convert GHashTable to wmem_map_t.
Change-Id: I0de1c332a6052c20f6afbe1e51dfb14e18485891 Reviewed-on: https://code.wireshark.org/review/19899 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ncp2222.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/ncp2222.py b/tools/ncp2222.py
index 3eb91bc03e..3516d5bc75 100755
--- a/tools/ncp2222.py
+++ b/tools/ncp2222.py
@@ -5902,8 +5902,6 @@ def produce_code():
/* Function declarations for functions used in proto_register_ncp2222() */
void proto_register_ncp2222(void);
-static void ncp_init_protocol(void);
-static void ncp_postseq_cleanup(void);
/* Endianness macros */
#define NO_ENDIANNESS 0
@@ -8531,7 +8529,10 @@ proto_register_ncp2222(void)
reassembly_table_register(&nds_reassembly_table,
&addresses_reassembly_table_functions);
- register_postseq_cleanup_routine(&ncp_postseq_cleanup);""")
+ ncp_req_hash = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), ncp_hash, ncp_equal);
+ ncp_req_eid_hash = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), ncp_eid_hash, ncp_eid_equal);
+
+ """)
# End of proto_register_ncp2222()
print("}")