aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-mailslot.h
diff options
context:
space:
mode:
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-mailslot.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-mailslot.h')
-rw-r--r--packet-smb-mailslot.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-smb-mailslot.h b/packet-smb-mailslot.h
index e22dd17405..ce46adb408 100644
--- a/packet-smb-mailslot.h
+++ b/packet-smb-mailslot.h
@@ -2,10 +2,10 @@
* Declaration of routines for SMB mailslot packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-smb-mailslot.h,v 1.1 2001/03/18 03:23:30 guy Exp $
+ * $Id: packet-smb-mailslot.h,v 1.2 2001/08/05 00:16:36 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
@@ -26,5 +26,5 @@
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);