diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-08-01 03:47:00 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-08-01 03:47:00 +0000 |
commit | 9ab5b580ce26833da98ccd878be4c6a76cd6f37c (patch) | |
tree | f5aa2de0c88535de750fdaa89a56143580c56026 /packet-smb-mailslot.c | |
parent | 97a90e0f6ca5b8a8737905a43881c18833032125 (diff) |
Packets sent to \MAILSLOT\LANMAN appear to be browser announcements (for
an older version of the protocol than the one for packets sent to
\MAILSLOT\BROWSE), rather than being LANMAN pipe packets.
svn path=/trunk/; revision=3803
Diffstat (limited to 'packet-smb-mailslot.c')
-rw-r--r-- | packet-smb-mailslot.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packet-smb-mailslot.c b/packet-smb-mailslot.c index 4fa044fc21..2095610c8e 100644 --- a/packet-smb-mailslot.c +++ b/packet-smb-mailslot.c @@ -2,7 +2,7 @@ * Routines for SMB mailslot packet dissection * Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com> * - * $Id: packet-smb-mailslot.c,v 1.13 2001/07/12 23:37:48 guy Exp $ + * $Id: packet-smb-mailslot.c,v 1.14 2001/08/01 03:47:00 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -121,7 +121,8 @@ dissect_mailslot_smb(const u_char *pd, int offset, frame_data *fd, /*** Decide what dissector to call based upon the command value ***/ - if (command != NULL && strcmp(command, "BROWSE") == 0) { /* Decode a browse */ + if (command != NULL && strcmp(command, "BROWSE") == 0) { + /* Decode a browse */ tvbuff_t *tvb; packet_info *pinfo = π @@ -131,10 +132,13 @@ dissect_mailslot_smb(const u_char *pd, int offset, frame_data *fd, } else if (command != NULL && strcmp(command, "LANMAN") == 0) { + /* Decode a LANMAN browse */ - return dissect_pipe_lanman(pd, offset, fd, parent, tree, si, - max_data, SMB_offset, errcode, dirn, command, - DataOffset, DataCount, ParameterOffset, ParameterCount); + tvbuff_t *tvb; + packet_info *pinfo = π + tvb = tvb_create_from_top(DataOffset); + + return dissect_mailslot_lanman(tvb, pinfo, parent); } /* NOTE: use TEMP\\NETLOGON and MSSP because they seems very common, */ |