From 45fd4fec54c327c82e690bedf874c03a28512c92 Mon Sep 17 00:00:00 2001 From: Olivier Abad Date: Sun, 5 Nov 2000 09:26:47 +0000 Subject: Allow a plugin to specify several underlying protocols (i.e. tcp and udp). The protocol constant definition in the plugin must be : DLLEXPORT const gchar protocol[] = "tcp udp"; svn path=/trunk/; revision=2567 --- packet-udp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packet-udp.c') diff --git a/packet-udp.c b/packet-udp.c index c577794a4c..2ccf2f175c 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.76 2000/10/21 09:54:10 guy Exp $ + * $Id: packet-udp.c,v 1.77 2000/11/05 09:26:47 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -39,6 +39,7 @@ #include #include +#include #include #include "globals.h" @@ -98,7 +99,7 @@ decode_udp_ports(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, if (enabled_plugins_number > 0) { while (pt_plug) { - if (pt_plug->enabled && !strcmp(pt_plug->protocol, "udp") && + if (pt_plug->enabled && strstr(pt_plug->protocol, "udp") && tree && dfilter_apply(pt_plug->filter, tree, pd, fd->cap_len)) { pt_plug->dissector(pd, offset, fd, tree); return; -- cgit v1.2.3