diff options
author | Richard Sharpe <sharpe@ns.aus.com> | 2002-09-20 07:43:02 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@ns.aus.com> | 2002-09-20 07:43:02 +0000 |
commit | 29eb4e3c65cc4df691c348afe82772e37f5cc87f (patch) | |
tree | 6c3cdc596bdea7b321e9e6c18f4babab9960d9de /packet-smb.c | |
parent | c2e6d4fcb24d688658e9015c241dfe1e7d219518 (diff) | |
download | wireshark-29eb4e3c65cc4df691c348afe82772e37f5cc87f.tar.gz wireshark-29eb4e3c65cc4df691c348afe82772e37f5cc87f.tar.bz2 wireshark-29eb4e3c65cc4df691c348afe82772e37f5cc87f.zip |
More pretty-boy stuff for Write&X responses ...
svn path=/trunk/; revision=6307
Diffstat (limited to 'packet-smb.c')
-rw-r--r-- | packet-smb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packet-smb.c b/packet-smb.c index 34ddc55326..85429915a2 100644 --- a/packet-smb.c +++ b/packet-smb.c @@ -3,7 +3,7 @@ * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * 2001 Rewrite by Ronnie Sahlberg and Guy Harris * - * $Id: packet-smb.c,v 1.293 2002/09/20 07:28:20 sharpe Exp $ + * $Id: packet-smb.c,v 1.294 2002/09/20 07:43:02 sharpe Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -5561,7 +5561,7 @@ static int dissect_write_andx_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, proto_tree *smb_tree) { guint8 wc, cmd=0xff; - guint16 andxoffset=0, bc; + guint16 andxoffset=0, bc, datalen=0; smb_info_t *si; WORD_COUNT; @@ -5592,9 +5592,15 @@ dissect_write_andx_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, } /* write count */ + datalen = tvb_get_letohs(tvb, offset); proto_tree_add_item(tree, hf_smb_count, tvb, offset, 2, TRUE); offset += 2; + if (check_col(pinfo->cinfo, COL_INFO)) + col_append_fstr(pinfo->cinfo, COL_INFO, + ", %u byte%s", datalen, + (datalen == 1) ? "" : "s"); + /* remaining */ proto_tree_add_item(tree, hf_smb_remaining, tvb, offset, 2, TRUE); offset += 2; |