From 0ab8e159b913cf0537df6b407c4cabac9fe196e7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 2 Dec 2000 08:41:08 +0000 Subject: Some tvbuffified dissectors weren't setting "pinfo->current_proto", so that if they threw an exception, the wrong protocol would be blamed. Add the missing assignments. Clean up the extraction of the null-encapsulation header. svn path=/trunk/; revision=2730 --- packet-zebra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packet-zebra.c') diff --git a/packet-zebra.c b/packet-zebra.c index f3f1282a57..207a2c93da 100644 --- a/packet-zebra.c +++ b/packet-zebra.c @@ -3,7 +3,7 @@ * * Jochen Friedrich * - * $Id: packet-zebra.c,v 1.4 2000/11/19 08:54:11 guy Exp $ + * $Id: packet-zebra.c,v 1.5 2000/12/02 08:41:08 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -478,6 +478,8 @@ dissect_zebra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) CHECK_DISPLAY_AS_DATA(proto_zebra, tvb, pinfo, tree); + pinfo->current_proto = "ZEBRA"; + if (check_col(pinfo->fd, COL_PROTOCOL)) col_set_str(pinfo->fd, COL_PROTOCOL, "ZEBRA"); -- cgit v1.2.3