update some SMB2 find flags
authorAndrew Tridgell <tridge@samba.org>
Thu, 15 May 2008 10:46:10 +0000 (20:46 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 15 May 2008 10:46:10 +0000 (20:46 +1000)
(This used to be commit b7560afd4bab984c0083e9687b69bc42970ad932)

source4/libcli/raw/interfaces.h
source4/libcli/smb2/find.c

index bad37437216edb416d291a0685d4502471cc8b46..871bab01db0d77381a540c396f71addc5d76b2cc 100644 (file)
@@ -2354,10 +2354,11 @@ union smb_search_first {
 #define SMB2_FIND_ID_BOTH_DIRECTORY_INFO 0x25
 #define SMB2_FIND_ID_FULL_DIRECTORY_INFO 0x26
 
-/* flags for RAW_FILEINFO_SMB2_ALL_EAS */
+/* flags for SMB2 find */
 #define SMB2_CONTINUE_FLAG_RESTART    0x01
 #define SMB2_CONTINUE_FLAG_SINGLE     0x02
-#define SMB2_CONTINUE_FLAG_NEW        0x10
+#define SMB2_CONTINUE_FLAG_INDEX      0x04
+#define SMB2_CONTINUE_FLAG_REOPEN     0x10
 
        /* SMB2 Find */
        struct smb2_find {
@@ -2370,7 +2371,7 @@ union smb_search_first {
                        /* uint16_t buffer_code;  0x21 = 0x20 + 1 */
                        uint8_t level;
                        uint8_t continue_flags; /* SMB2_CONTINUE_FLAG_* */
-                       uint32_t unknown; /* perhaps a continue token? */
+                       uint32_t file_index; 
                        /* struct smb2_handle handle; */
                        /* uint16_t pattern_ofs; */
                        /* uint16_t pattern_size; */
index 6b4902a026c6c2e49dc0e6bbcf5056814fec0579..8ebfd81bcd1d18580aaddbcd13be8c7b9fa0a1c1 100644 (file)
@@ -38,7 +38,7 @@ struct smb2_request *smb2_find_send(struct smb2_tree *tree, struct smb2_find *io
 
        SCVAL(req->out.body, 0x02, io->in.level);
        SCVAL(req->out.body, 0x03, io->in.continue_flags);
-       SIVAL(req->out.body, 0x04, io->in.unknown);
+       SIVAL(req->out.body, 0x04, io->in.file_index);
        smb2_push_handle(req->out.body+0x08, &io->in.file.handle);
 
        status = smb2_push_o16s16_string(&req->out, 0x18, io->in.pattern);