summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-08 12:34:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:56 -0500
commita3797ff66a1b3b19329a622fa38b5a073328e003 (patch)
tree4fc43b8dca97bb6f7e2110e1c652d432da1d204c /source4/libcli
parent1fcd8c8a90a593d9ed88f73770a060f3d89d1673 (diff)
downloadsamba-a3797ff66a1b3b19329a622fa38b5a073328e003.tar.gz
samba-a3797ff66a1b3b19329a622fa38b5a073328e003.tar.bz2
samba-a3797ff66a1b3b19329a622fa38b5a073328e003.zip
r16875: implement SMB2 Find in the frontend
metze (This used to be commit 58bed7322c7e552d0462a11ce5d46a282c31f8f7)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/interfaces.h9
-rw-r--r--source4/libcli/smb2/smb2_calls.h4
2 files changed, 9 insertions, 4 deletions
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h
index f77d31a1c7..27b3510371 100644
--- a/source4/libcli/raw/interfaces.h
+++ b/source4/libcli/raw/interfaces.h
@@ -2224,6 +2224,12 @@ union smb_search_first {
#define SMB2_FIND_NAME_INFO 0x0C
#define SMB2_FIND_ID_BOTH_DIRECTORY_INFO 0x25
#define SMB2_FIND_ID_FULL_DIRECTORY_INFO 0x26
+
+/* flags for RAW_FILEINFO_SMB2_ALL_EAS */
+#define SMB2_CONTINUE_FLAG_RESTART 0x01
+#define SMB2_CONTINUE_FLAG_SINGLE 0x02
+#define SMB2_CONTINUE_FLAG_NEW 0x10
+
/* SMB2 Find */
struct smb2_find {
enum smb_search_level level;
@@ -2306,6 +2312,9 @@ union smb_search_next {
uint16_t end_of_search;
} out;
} t2fnext;
+
+ /* SMB2 Find */
+ struct smb2_find smb2;
};
/* union for search reply file data */
diff --git a/source4/libcli/smb2/smb2_calls.h b/source4/libcli/smb2/smb2_calls.h
index f870ddb38a..abb7f88ee2 100644
--- a/source4/libcli/smb2/smb2_calls.h
+++ b/source4/libcli/smb2/smb2_calls.h
@@ -57,10 +57,6 @@ struct smb2_negprot {
#define SMB2_GETINFO_FS 0x02
#define SMB2_GETINFO_SECURITY 0x03
-/* flags for RAW_FILEINFO_SMB2_ALL_EAS */
-#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
lib uses the names from the libcli/raw/ library */