summaryrefslogtreecommitdiff
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-15 10:01:38 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-17 09:25:45 +0200
commitd60f049eaf30d7a717291b2f295cc889efc7afa9 (patch)
tree65fae0f203759414aaef44c6d1d8deab0d52b0d1 /source3/smbd/globals.h
parent3b3bde938cd404605b43710478cf7999551071b4 (diff)
downloadsamba-d60f049eaf30d7a717291b2f295cc889efc7afa9.tar.gz
samba-d60f049eaf30d7a717291b2f295cc889efc7afa9.tar.bz2
samba-d60f049eaf30d7a717291b2f295cc889efc7afa9.zip
s3:smbd: implement SMB2 Cancel correctly.
metze
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r--source3/smbd/globals.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 0b8ef5818c..bfed901bf4 100644
--- 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);
-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);
@@ -311,6 +312,12 @@ struct smbd_smb2_request {
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];