aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-08-05 00:30:41 +0000
committerGuy Harris <guy@alum.mit.edu>2001-08-05 00:30:41 +0000
commitd271509c7e5c18fce2f700cf52b570717046126d (patch)
treea5ac3e98c946115a815e6fae950227e0f93ca889 /packet-smb.c
parent749f27dd0e839a5d41984359594a98e357761028 (diff)
Use the #define SMB_FLAGS_DIRN, rather than its numerical value, when
testing the request/response flag. svn path=/trunk/; revision=3823
Diffstat (limited to 'packet-smb.c')
-rw-r--r--packet-smb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-smb.c b/packet-smb.c
index c56a35f237..4c23d6ed5d 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -2,7 +2,7 @@
* Routines for smb packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-smb.c,v 1.93 2001/08/05 00:16:36 guy Exp $
+ * $Id: packet-smb.c,v 1.94 2001/08/05 00:30:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2582,7 +2582,7 @@ dissect_ssetup_andx_smb(const u_char *pd, int offset, frame_data *fd, proto_tree
proto_tree_add_text(Capabilities_tree, NullTVB, offset, 4, "%s",
decode_boolean_bitfield(Capabilities, 0x80000000, 32, " Extended Security Exchanges supported", " Extended Security Exchanges not supported"));
-}
+ }
offset += 4; /* Skip Capabilities */
@@ -10864,7 +10864,7 @@ dissect_smb(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int
/* Now for the flags: Bit 0 = 0 means cmd, 0 = 1 means resp */
flags = pd[offset];
- si.request = !(flags&0x80);
+ si.request = !(flags&SMB_FLAGS_DIRN);
if (tree) {