aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ncp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-12-29 04:16:57 +0000
committerGuy Harris <guy@alum.mit.edu>2000-12-29 04:16:57 +0000
commit5bcb17c724b7c1958a0f36d2a421fa7e6da9345e (patch)
treee462fe7b56e8626dcfee449e8761a52e236906a1 /packet-ncp.c
parent00828b3f2bfe8523886257e54e37d34f18155f7d (diff)
If we get an exception when dissecting a packet, append "[Short Frame]"
or "[Malformed Frame]" to the Info column. Make some dissectors set the Protocol column and clear the Info column before fetching anything from the tvbuff they were handed, so that if the frame is short or malformed, it'll be marked as being the right top-level protocol, and the Info column won't have cruft left over from the previous protocol. svn path=/trunk/; revision=2800
Diffstat (limited to 'packet-ncp.c')
-rw-r--r--packet-ncp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-ncp.c b/packet-ncp.c
index bafd1852fd..ccd19618b8 100644
--- a/packet-ncp.c
+++ b/packet-ncp.c
@@ -3,7 +3,7 @@
* Gilbert Ramirez <gram@xiexie.org>
* Modified to allow NCP over TCP/IP decodes by James Coe <jammer@cin.net>
*
- * $Id: packet-ncp.c,v 1.41 2000/11/19 08:54:00 guy Exp $
+ * $Id: packet-ncp.c,v 1.42 2000/12/29 04:16:57 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -264,6 +264,8 @@ dissect_ncp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
pinfo->current_proto = "NCP";
if (check_col(pinfo->fd, COL_PROTOCOL))
col_set_str(pinfo->fd, COL_PROTOCOL, "NCP");
+ if (check_col(pinfo->fd, COL_INFO))
+ col_clear(pinfo->fd, COL_INFO);
if ( pi.ptype == PT_TCP || pi.ptype == PT_UDP ) {
ncpiph.signature = tvb_get_ntohl(tvb, 0);