diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-12-02 08:41:08 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-12-02 08:41:08 +0000 |
commit | 0ab8e159b913cf0537df6b407c4cabac9fe196e7 (patch) | |
tree | 459183fb6c07494e3982e6837363d3e4b8f2ba19 /packet-hsrp.c | |
parent | 75acffe70c5a17c20324094c15397ff60a8641de (diff) |
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
Diffstat (limited to 'packet-hsrp.c')
-rw-r--r-- | packet-hsrp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-hsrp.c b/packet-hsrp.c index fba2f898d5..87a4e8db9c 100644 --- a/packet-hsrp.c +++ b/packet-hsrp.c @@ -4,7 +4,7 @@ * * Heikki Vatiainen <hessu@cs.tut.fi> * - * $Id: packet-hsrp.c,v 1.11 2000/11/21 05:36:36 guy Exp $ + * $Id: packet-hsrp.c,v 1.12 2000/12/02 08:41:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -107,6 +107,8 @@ dissect_hsrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) CHECK_DISPLAY_AS_DATA(proto_hsrp, tvb, pinfo, tree); + pinfo->current_proto = "HSRP"; + if (check_col(pinfo->fd, COL_PROTOCOL)) col_set_str(pinfo->fd, COL_PROTOCOL, "HSRP"); |