summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/smb_server.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-17 09:44:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:12 -0500
commit8075ce63fdbaeb2fe508097a46d794a49138c307 (patch)
treebdc32b1f46568b1b9e16b754d17259c5b4ce29df /source4/smb_server/smb_server.h
parenta5bafffd66f511375dda4c974e6a1f152fc7aa16 (diff)
downloadsamba-8075ce63fdbaeb2fe508097a46d794a49138c307.tar.gz
samba-8075ce63fdbaeb2fe508097a46d794a49138c307.tar.xz
samba-8075ce63fdbaeb2fe508097a46d794a49138c307.zip
r17084: implement SMB2 Cancel in the server,
that makes it possible for clients to cancel async requests, like NOTIFY... metze (This used to be commit eaccd3c4353833daf584aaea4d7e8f11004a8072)
Diffstat (limited to 'source4/smb_server/smb_server.h')
-rw-r--r--source4/smb_server/smb_server.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/smb_server/smb_server.h b/source4/smb_server/smb_server.h
index c546de7e1c..9acf181c54 100644
--- a/source4/smb_server/smb_server.h
+++ b/source4/smb_server/smb_server.h
@@ -324,9 +324,26 @@ struct smbsrv_connection {
/*
* the server_context holds a linked list of pending requests,
* this is used for finding the request structures on ntcancel requests
+ * For SMB only
*/
struct smbsrv_request *requests;
+ /*
+ * the server_context holds a linked list of pending requests,
+ * and an idtree for finding the request structures on SMB2 Cancel
+ * For SMB2 only
+ */
+ struct {
+ /* an id tree used to allocate ids */
+ struct idr_context *idtree_req;
+
+ /* this is the limit of pending requests values for this connection */
+ uint32_t idtree_limit;
+
+ /* list of open tree connects */
+ struct smb2srv_request *list;
+ } requests2;
+
struct smb_signing_context signing;
struct stream_connection *connection;