git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s3:smbd: implement SMB2 Cancel correctly.
[metze/samba/wip.git]
/
source3
/
smbd
/
globals.h
diff --git
a/source3/smbd/globals.h
b/source3/smbd/globals.h
index 0b8ef5818ccd205c60d392fd0ee83e32130012b6..bfed901bf4adb208a9c030651d0e8d773a096b78 100644
(file)
--- a/
source3/smbd/globals.h
+++ b/
source3/smbd/globals.h
@@
-264,7
+264,8
@@
NTSTATUS smbd_smb2_send_oplock_break(struct smbd_server_connection *sconn,
uint64_t file_id_volatile,
uint8_t oplock_level);
uint64_t file_id_volatile,
uint8_t oplock_level);
-NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req);
+NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req,
+ struct tevent_req *subreq);
NTSTATUS smbd_smb2_request_check_session(struct smbd_smb2_request *req);
NTSTATUS smbd_smb2_request_check_tcon(struct smbd_smb2_request *req);
NTSTATUS smbd_smb2_request_check_session(struct smbd_smb2_request *req);
NTSTATUS smbd_smb2_request_check_tcon(struct smbd_smb2_request *req);
@@
-311,6
+312,12
@@
struct smbd_smb2_request {
NTSTATUS next_status;
NTSTATUS next_status;
+ /*
+ * The sub request for async backend calls.
+ * This is used for SMB2 Cancel.
+ */
+ struct tevent_req *subreq;
+
struct {
/* the NBT header is not allocated */
uint8_t nbt_hdr[4];
struct {
/* the NBT header is not allocated */
uint8_t nbt_hdr[4];