path: root/packet-smb-pipe.h
diff options
authorGuy Harris <guy@alum.mit.edu>2001-08-05 00:16:36 +0000
committerGuy Harris <guy@alum.mit.edu>2001-08-05 00:16:36 +0000
commit749f27dd0e839a5d41984359594a98e357761028 (patch)
treeae3e6439c36bceb26d14d4943c0dc4654f87dabf /packet-smb-pipe.h
parent74262f37de7dee3dae6d3bf993bc2a5af792fb58 (diff)
Add a request/response flag to the "struct smb_info" structure, and use
that rather than passing another copy of that flag to dissectors of particular messages. Pass that structure to the pipe subdissector by making "pi.private" point to it, rather than by passing it as an explicit argument. Change more of the if (dirn == 1) { ... } if (dirn == 0) { ... } stuff to if (dirn == 1) { ... } else { ... } and then, as per the first paragraph, check the "request" flag in the "smb_info" structure rather than checking a "dirn" flag. Set "last_transact2_command" to -1 in the "smb_request_val" structures for TRANSACTION requests, as it doesn't apply to those requests. As "dissect_transact_params()" doesn't do any work if the "TransactName" argument is null, don't bother calling it for a reply if we don't have an "smb_request_val" for the corresponding request, as that means we can't find out the value to pass as the "TransactName" argument. svn path=/trunk/; revision=3822
Diffstat (limited to 'packet-smb-pipe.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-smb-pipe.h b/packet-smb-pipe.h
index 5cb8554447..a0717aaf5a 100644
--- a/packet-smb-pipe.h
+++ b/packet-smb-pipe.h
@@ -2,7 +2,7 @@
* Declarations of routines for SMB named pipe packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
- * $Id: packet-smb-pipe.h,v 1.2 2001/08/01 03:51:16 guy Exp $
+ * $Id: packet-smb-pipe.h,v 1.3 2001/08/05 00:16:36 guy Exp $
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -25,6 +25,6 @@
dissect_pipe_smb(const u_char *pd, int offset, frame_data *fd,
- proto_tree *parent, proto_tree *tree, struct smb_info si, int max_data,
- int SMB_offset, int errcode, int dirn, const u_char *command,
+ proto_tree *parent, proto_tree *tree, int max_data,
+ int SMB_offset, int errcode, const u_char *command,
int DataOffset, int DataCount, int ParameterOffset, int ParameterCount);