diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-08-07 08:39:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-08-07 08:39:57 +0000 |
commit | 30296fc74511980bad478d56a67d10ab7c01a77f (patch) | |
tree | 648a4500b99603efd2a2a4566c70face6ad2c063 /packet-smb-pipe.c | |
parent | 57091e1abb817dc4c39c704723a0c66ee6389341 (diff) |
Tvbuffified SMB mailslot protocol dissector, from Ronnie Sahlberg.
svn path=/trunk/; revision=3832
Diffstat (limited to 'packet-smb-pipe.c')
-rw-r--r-- | packet-smb-pipe.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packet-smb-pipe.c b/packet-smb-pipe.c index 78f057f1c8..f001569a6d 100644 --- a/packet-smb-pipe.c +++ b/packet-smb-pipe.c @@ -9,7 +9,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.27 2001/08/06 08:49:17 guy Exp $ + * $Id: packet-smb-pipe.c,v 1.28 2001/08/07 08:39:56 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1524,14 +1524,15 @@ dissect_pipe_lanman(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) gboolean -dissect_pipe_smb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, - char *command) +dissect_pipe_smb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { + struct smb_info *smb_info = pinfo->private; + if (!proto_is_protocol_enabled(proto_smb_lanman)) return FALSE; pinfo->current_proto = "LANMAN"; - if (command != NULL && strcmp(command, "LANMAN") == 0) { + if (smb_info->trans_cmd && strcmp(smb_info->trans_cmd, "LANMAN") == 0) { /* Try to decode a LANMAN */ return dissect_pipe_lanman(tvb, pinfo, tree); |