summaryrefslogtreecommitdiff
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-14 13:23:19 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-19 22:12:42 +0200
commite621b7a52ee597cef9fbcd7b7af337e8749c4dca (patch)
tree44b8ea9300a86f84152d18c9cb44628699ee7101 /source3/smbd/globals.h
parentcf6e81f158ca7b76103fc53f5b96ffae00db6aed (diff)
downloadsamba-e621b7a52ee597cef9fbcd7b7af337e8749c4dca.tar.gz
samba-e621b7a52ee597cef9fbcd7b7af337e8749c4dca.tar.bz2
samba-e621b7a52ee597cef9fbcd7b7af337e8749c4dca.zip
s3:smbd: add a generic smbd_dirptr_lanman2_entry() function
This can we used by SMB2, the key difference between SMB1 and SMB2 is that with SMB2 entries are aligned to 8 bytes and there's no padding at the end of the last entry. metze
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r--source3/smbd/globals.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index fd92c22e72..0db61f87a3 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -234,6 +234,27 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
uint32_t *_mode,
long *_prev_offset);
+bool smbd_dirptr_lanman2_entry(TALLOC_CTX *ctx,
+ connection_struct *conn,
+ struct dptr_struct *dirptr,
+ uint16 flags2,
+ const char *path_mask,
+ uint32 dirtype,
+ int info_level,
+ int requires_resume_key,
+ bool dont_descend,
+ bool ask_sharemode,
+ uint8_t align,
+ bool do_pad,
+ char **ppdata,
+ char *base_data,
+ char *end_data,
+ int space_remaining,
+ bool *out_of_space,
+ bool *got_exact_match,
+ int *_last_entry_off,
+ struct ea_list *name_list);
+
NTSTATUS smbd_check_open_rights(struct connection_struct *conn,
const struct smb_filename *smb_fname,
uint32_t access_mask,