From 8075ce63fdbaeb2fe508097a46d794a49138c307 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 17 Jul 2006 09:44:13 +0000 Subject: 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) --- source4/smb_server/smb_server.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source4/smb_server/smb_server.h') 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; -- cgit