diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-08-28 19:10:33 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-08-28 19:10:33 +0000 |
commit | f6b9c18eed4f657bc97bb6ad25d0b5485b9c37af (patch) | |
tree | 94e2ba29dbc09ce4acbb40eb4789e2d03c2da6ad /epan/dissectors/packet-fix.c | |
parent | 29f0303517500f2f4691709fb074579ab5ae9c8b (diff) |
Use dissector_delete_uint_range/dissector_add_uint_range
svn path=/trunk/; revision=51567
Diffstat (limited to 'epan/dissectors/packet-fix.c')
-rw-r--r-- | epan/dissectors/packet-fix.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/epan/dissectors/packet-fix.c b/epan/dissectors/packet-fix.c index b2ce4e317b..31b8cd296f 100644 --- a/epan/dissectors/packet-fix.c +++ b/epan/dissectors/packet-fix.c @@ -443,22 +443,12 @@ dissect_fix_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data } /* Register the protocol with Wireshark */ -static void range_delete_fix_tcp_callback(guint32 port) { - dissector_delete_uint("tcp.port", port, fix_handle); - ssl_dissector_delete(port, "fix", TRUE); -} - -static void range_add_fix_tcp_callback(guint32 port) { - dissector_add_uint("tcp.port", port, fix_handle); - ssl_dissector_add(port, "fix", TRUE); -} - static void fix_prefs(void) { - range_foreach(fix_tcp_range, range_delete_fix_tcp_callback); + dissector_delete_uint_range("tcp.port", fix_tcp_range, fix_handle); g_free(fix_tcp_range); fix_tcp_range = range_copy(global_fix_tcp_range); - range_foreach(fix_tcp_range, range_add_fix_tcp_callback); + dissector_add_uint_range("tcp.port", fix_tcp_range, fix_handle); } /* this format is require because a script is used to build the C function |