aboutsummaryrefslogtreecommitdiffstats
path: root/packet-udp.c
diff options
context:
space:
mode:
authorOlivier Abad <oabad@noos.fr>2000-11-05 09:26:47 +0000
committerOlivier Abad <oabad@noos.fr>2000-11-05 09:26:47 +0000
commit45fd4fec54c327c82e690bedf874c03a28512c92 (patch)
treef2c7cd6809b7356ef2f2163f570b2b9f0ba6e6f1 /packet-udp.c
parent543ce8680a2ee797810e474f577ec1dd2ba1534c (diff)
downloadwireshark-45fd4fec54c327c82e690bedf874c03a28512c92.tar.gz
wireshark-45fd4fec54c327c82e690bedf874c03a28512c92.tar.bz2
wireshark-45fd4fec54c327c82e690bedf874c03a28512c92.zip
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
Diffstat (limited to 'packet-udp.c')
-rw-r--r--packet-udp.c5
1 files changed, 3 insertions, 2 deletions
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 <gerald@zing.org>
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <glib.h>
#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;