summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/smb2_calls.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-19 06:39:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:29 -0500
commitfc04e3e795cebca5723c24e097f5374a23b2247b (patch)
tree88852c9d430623591fa004f7f21cac6b14c214a7 /source4/libcli/smb2/smb2_calls.h
parent7d6f36682eab29cb23c40dd915acad61fb5d68cb (diff)
downloadsamba-fc04e3e795cebca5723c24e097f5374a23b2247b.tar.gz
samba-fc04e3e795cebca5723c24e097f5374a23b2247b.tar.bz2
samba-fc04e3e795cebca5723c24e097f5374a23b2247b.zip
r11801: - added basic SMB2 find support
- added SMB2-SCANFIND test - cleaned up continue flags in EAs and find requests (This used to be commit 8792bc07d927e6470874230153177748afae3ee8)
Diffstat (limited to 'source4/libcli/smb2/smb2_calls.h')
-rw-r--r--source4/libcli/smb2/smb2_calls.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/source4/libcli/smb2/smb2_calls.h b/source4/libcli/smb2/smb2_calls.h
index e6e1872d5e..10d6cda7a3 100644
--- a/source4/libcli/smb2/smb2_calls.h
+++ b/source4/libcli/smb2/smb2_calls.h
@@ -189,8 +189,8 @@ struct smb2_close {
#define SMB2_GETINFO_SECURITY 0x03
/* flags for RAW_FILEINFO_SMB2_ALL_EAS */
-#define SMB2_GETINFO_EA_FLAG_RESTART 0x01
-#define SMB2_GETINFO_EA_FLAG_SINGLE 0x02
+#define SMB2_CONTINUE_FLAG_RESTART 0x01
+#define SMB2_CONTINUE_FLAG_SINGLE 0x02
/* NOTE! the getinfo fs and file levels exactly match up with the
'passthru' SMB levels, which are levels >= 1000. The SMB2 client
@@ -278,3 +278,18 @@ struct smb2_read {
DATA_BLOB data;
} out;
};
+
+struct smb2_find {
+ struct {
+ uint8_t level;
+ uint8_t continue_flags; /* SMB2_CONTINUE_FLAG_* */
+ uint32_t unknown; /* perhaps a continue token? */
+ struct smb2_handle handle;
+ uint32_t max_response_size;
+ const char *pattern;
+ } in;
+
+ struct {
+ DATA_BLOB blob;
+ } out;
+};