summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb_server.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-18 12:38:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:26 -0500
commit3f968be9d55986666c13f3ef4f54e8e1796b1539 (patch)
tree1b3746edc2736d202d0c3d4ac70cf46ec8561137 /source4/smb_server/smb_server.h
parent509be8d902038ec2a75ece5fd28d43d73218f0b2 (diff)
downloadsamba-3f968be9d55986666c13f3ef4f54e8e1796b1539.tar.gz
samba-3f968be9d55986666c13f3ef4f54e8e1796b1539.tar.bz2
samba-3f968be9d55986666c13f3ef4f54e8e1796b1539.zip
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)
Diffstat (limited to 'source4/smb_server/smb_server.h')
-rw-r--r--source4/smb_server/smb_server.h17
1 files changed, 14 insertions, 3 deletions
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 <myersjj@samba.org>
- 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;