From 356f0336e558465318450da8936ebfef3f1f4eb1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 26 May 2009 15:21:16 +0200 Subject: s3:smbd: move some session specific globals to struct smbd_server_connection metze --- source3/smbd/globals.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'source3/smbd/globals.h') diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 2b4dce7489..c538ecf64f 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -105,13 +105,6 @@ extern int num_validated_vuids; extern char *my_yp_domain; #endif -/* - * Size of data we can send to client. Set - * by the client for all protocols above CORE. - * Set by us for CORE protocol. - */ -extern int max_send; -extern uint16 last_session_tag; extern int trans_num; extern pid_t mypid; @@ -146,7 +139,6 @@ extern uint16_t last_flags; extern struct db_context *session_db_ctx_ptr; extern uint32_t global_client_caps; -extern bool done_sesssetup; extern uint16_t fnf_handle; @@ -333,6 +325,16 @@ struct smbd_server_connection { int max_recv; } negprot; + struct { + bool done_sesssetup; + /* + * Size of data we can send to client. Set + * by the client for all protocols above CORE. + * Set by us for CORE protocol. + */ + int max_send; + uint16_t last_session_tag; + } sessions; struct smb_signing_state *signing_state; /* List to store partial SPNEGO auth fragments. */ struct pending_auth_data *pd_list; -- cgit