From b683501580c208838248c89b532b9d5b0c5ca277 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 28 Jan 2001 21:17:29 +0000 Subject: Get rid of support for old-style plugins (support for old-style plugins requires that the dfilter code be initialized before the plugins are added; this required us to *re*-initialize the dfilter code after reading in all the plugins, as the plugins may themselves have added new filterable fields - that was a bit of a mess), and make the "Tools->Plugins" dialog box show the new-style plugins. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2950 f5534014-38df-0310-8fa8-9805f1628bb7 --- packet-udp.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'packet-udp.c') diff --git a/packet-udp.c b/packet-udp.c index 88c7fd792d..bc36905876 100644 --- a/packet-udp.c +++ b/packet-udp.c @@ -1,7 +1,7 @@ /* packet-udp.c * Routines for UDP packet disassembly * - * $Id: packet-udp.c,v 1.86 2001/01/22 03:33:45 guy Exp $ + * $Id: packet-udp.c,v 1.87 2001/01/28 21:17:26 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -46,7 +46,6 @@ #include "resolv.h" #include "in_cksum.h" -#include "plugins.h" #include "packet-udp.h" #include "packet-ip.h" @@ -84,10 +83,6 @@ decode_udp_ports(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int uh_sport, int uh_dport) { tvbuff_t *next_tvb; -#ifdef HAVE_PLUGINS - const u_char *next_pd; - int next_offset; -#endif next_tvb = tvb_new_subset(tvb, offset, -1, -1); @@ -96,26 +91,7 @@ decode_udp_ports(tvbuff_t *tvb, int offset, packet_info *pinfo, if (try_conversation_dissector(&pinfo->src, &pinfo->dst, PT_UDP, uh_sport, uh_dport, next_tvb, pinfo, tree)) - return; - - /* try to apply the plugins */ -#ifdef HAVE_PLUGINS - { - plugin *pt_plug = plugin_list; - - if (enabled_plugins_number > 0) { - tvb_compat(next_tvb, &next_pd, &next_offset); - while (pt_plug) { - if (pt_plug->enabled && strstr(pt_plug->protocol, "udp") && - tree && dfilter_apply(pt_plug->filter, tree, next_pd, pinfo->fd->cap_len)) { - pt_plug->dissector(next_pd, next_offset, pinfo->fd, tree); - return; - } - pt_plug = pt_plug->next; - } - } - } -#endif + return; /* do lookup with the subdissector table */ if (dissector_try_port(udp_dissector_table, uh_sport, next_tvb, pinfo, tree) || -- cgit v1.2.3