From 5f89c1d71531aaf70749107baa6f88a48d42e112 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 15 Apr 2001 09:05:17 +0000 Subject: Conversation dissectors are called through a mechanism that doesn't check for disabled protocols or set "pinfo->current_proto", so they have to do that for themselves. svn path=/trunk/; revision=3306 --- packet-quake.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'packet-quake.c') diff --git a/packet-quake.c b/packet-quake.c index 0e7ec25b18..75c839cf26 100644 --- a/packet-quake.c +++ b/packet-quake.c @@ -4,7 +4,7 @@ * Uwe Girlich * http://www.idsoftware.com/q1source/q1source.zip * - * $Id: packet-quake.c,v 1.13 2001/01/22 08:03:45 guy Exp $ + * $Id: packet-quake.c,v 1.14 2001/04/15 09:05:17 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -516,6 +516,15 @@ dissect_quake(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint rest_length; tvbuff_t *next_tvb; + /* + * XXX - this is a conversation dissector, and the code to + * call a conversation dissector doesn't check for disabled + * protocols or set "pinfo->current_proto". + */ + CHECK_DISPLAY_AS_DATA(proto_quake, tvb, pinfo, tree); + + pinfo->current_proto = "QUAKE"; + if (check_col(pinfo->fd, COL_PROTOCOL)) col_set_str(pinfo->fd, COL_PROTOCOL, "QUAKE"); if (check_col(pinfo->fd, COL_INFO)) -- cgit v1.2.3