aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-mailslot.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-08-05 00:16:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-08-05 00:16:36 +0000
commit2448c59bc43b3532e8cde343a96f7a3293b4fd88 (patch)
treeae3e6439c36bceb26d14d4943c0dc4654f87dabf /packet-smb-mailslot.c
parent905a0f92ce9b3765b15d00852a2e4400288a94a6 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3822 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-smb-mailslot.c')
-rw-r--r--packet-smb-mailslot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-smb-mailslot.c b/packet-smb-mailslot.c
index 2095610c8e..dfc48f546b 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.14 2001/08/01 03:47:00 guy Exp $
+ * $Id: packet-smb-mailslot.c,v 1.15 2001/08/05 00:16:36 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -39,7 +39,7 @@ static int ett_smb_msp = -1;
gboolean
dissect_mailslot_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,
+ int SMB_offset, int errcode, const u_char *command,
int DataOffset, int DataCount, int ParameterOffset, int ParameterCount){