aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tcp.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-tcp.c
parent7eaadf404879210df9e33309e3f3db2c72e56fc6 (diff)
downloadwireshark-cc74cc0a5ff013512ae2157f70d0a5d32c3302cc.tar.gz
wireshark-cc74cc0a5ff013512ae2157f70d0a5d32c3302cc.tar.bz2
wireshark-cc74cc0a5ff013512ae2157f70d0a5d32c3302cc.zip
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-tcp.c')
-rw-r--r--packet-tcp.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/packet-tcp.c b/packet-tcp.c
index 595a39ea65..6ce9db3d9c 100644
--- a/packet-tcp.c
+++ b/packet-tcp.c
@@ -1,7 +1,7 @@
/* packet-tcp.c
* Routines for TCP packet disassembly
*
- * $Id: packet-tcp.c,v 1.98 2001/01/22 03:33:45 guy Exp $
+ * $Id: packet-tcp.c,v 1.99 2001/01/28 21:17:26 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -48,7 +48,6 @@
#include "resolv.h"
#include "follow.h"
#include "prefs.h"
-#include "plugins.h"
#include "packet-tcp.h"
#include "packet-ip.h"
#include "conversation.h"
@@ -384,10 +383,6 @@ decode_tcp_ports(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, int src_port, int dst_port)
{
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);
@@ -396,26 +391,7 @@ decode_tcp_ports(tvbuff_t *tvb, int offset, packet_info *pinfo,
if (try_conversation_dissector(&pinfo->src, &pinfo->dst, PT_TCP,
src_port, dst_port, 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, "tcp") &&
- 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(subdissector_table, src_port, next_tvb, pinfo, tree) ||