From 3f968be9d55986666c13f3ef4f54e8e1796b1539 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 18 Nov 2005 12:38:39 +0000 Subject: r11782: - make the TID 32bit in the smbsrv_tcon structure, as SMB2 uses them - add a idtree_limit to the tcons substructure of smbsrv_connection this controls what the highest TID is we give away to the client it's UINT16_MAX (0xFFFF) for the SMB protocol metze (This used to be commit f3bf5a2c0947e33d4167fa4fa290968204a826e8) --- source4/smb_server/smb_server.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (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 ddf4a2b627..46a10c74bb 100644 --- a/source4/smb_server/smb_server.h +++ b/source4/smb_server/smb_server.h @@ -3,7 +3,7 @@ Copyright (C) Andrew Tridgell 2003 Copyright (C) James J Myers 2003 - Copyright (C) Stefan Metzmacher 2004 + Copyright (C) Stefan Metzmacher 2004-2005 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,7 +65,12 @@ struct smbsrv_tcon { /* the server context that this was created on */ struct smbsrv_connection *smb_conn; - uint16_t tid; /* an index passed over the wire (the TID) */ + /* + * an index passed over the wire: + * - 16 bit for smb + * - 32 bit for smb2 + */ + uint32_t tid; /* an index passed over the wire (the TID) */ int service; BOOL read_only; @@ -86,7 +91,10 @@ struct smbsrv_tcon { struct smbsrv_session *session; } sec_share; - struct timeval connect_time; + /* some statictics for the management tools */ + struct { + struct timeval connect_time; + } statistics; }; /* a set of flags to control handling of request structures */ @@ -225,6 +233,9 @@ struct smbsrv_connection { /* an id tree used to allocate tids */ struct idr_context *idtree_tid; + /* this is the limit of vuid values for this connection */ + uint32_t idtree_limit; + /* list of open tree connects */ struct smbsrv_tcon *list; } tcons; -- cgit