aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-pipe.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-02-17 01:59:39 +0000
committerTim Potter <tpot@samba.org>2003-02-17 01:59:39 +0000
commit3031823bed12bd2156b1718181575718ebdfe0ec (patch)
treec4dba5f01f7eba1355c16af4360db3b90f2f94f4 /packet-smb-pipe.c
parent33b251a58ff1e9d556f88ef5ff0de13927c9b551 (diff)
Dissect the server type bitfield in NetServerGetInfo for SERVER_INFO_101
and SERVER_INFO_102. Modify all callers to use the new interface. svn path=/trunk/; revision=7158
Diffstat (limited to 'packet-smb-pipe.c')
-rw-r--r--packet-smb-pipe.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/packet-smb-pipe.c b/packet-smb-pipe.c
index ba85937000..d9c4f0a2ac 100644
--- a/packet-smb-pipe.c
+++ b/packet-smb-pipe.c
@@ -8,7 +8,7 @@ XXX Fixme : shouldnt show [malformed frame] for long packets
* significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and
* Guy Harris 2001
*
- * $Id: packet-smb-pipe.c,v 1.85 2002/12/19 11:22:35 sahlberg Exp $
+ * $Id: packet-smb-pipe.c,v 1.86 2003/02/17 01:59:39 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -470,8 +470,9 @@ static int
add_server_type(tvbuff_t *tvb, int offset, int count _U_,
packet_info *pinfo, proto_tree *tree, int convert _U_, int hf_index _U_)
{
- dissect_smb_server_type_flags(tvb, pinfo, tree, offset, FALSE);
- offset += 4;
+ char drep = 0x10; /* Assume little-endian */
+ offset = dissect_smb_server_type_flags(
+ tvb, offset, pinfo, tree, &drep, FALSE);
return offset;
}
@@ -479,8 +480,9 @@ static int
add_server_type_info(tvbuff_t *tvb, int offset, int count _U_,
packet_info *pinfo, proto_tree *tree, int convert _U_, int hf_index _U_)
{
- dissect_smb_server_type_flags(tvb, pinfo, tree, offset, TRUE);
- offset += 4;
+ char drep = 0x10; /* Assume little-endian */
+ offset = dissect_smb_server_type_flags(
+ tvb, offset, pinfo, tree, &drep, TRUE);
return offset;
}