aboutsummaryrefslogtreecommitdiffstats
path: root/packet-udp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-28 21:17:29 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-28 21:17:29 +0000
commitcc74cc0a5ff013512ae2157f70d0a5d32c3302cc (patch)
tree96b4f79629bd08207bb9f39f42a01193b6b22f59 /packet-udp.c
parent7eaadf404879210df9e33309e3f3db2c72e56fc6 (diff)
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. svn path=/trunk/; revision=2950
Diffstat (limited to 'packet-udp.c')
-rw-r--r--packet-udp.c28
1 files changed, 2 insertions, 26 deletions
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 <gerald@zing.org>
@@ -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) ||