diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-15 14:45:56 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-12 01:01:34 +0200 |
commit | b3235d483da924a41ca9cecf72e1c62bab7fedd5 (patch) | |
tree | 9d34739a9e01e7d9176613a71ce68727e1ecf79d /source3/smbd/globals.h | |
parent | c8a3c0e0f793c622e071953b25a70a3fd8a0da65 (diff) | |
download | samba-b3235d483da924a41ca9cecf72e1c62bab7fedd5.tar.gz samba-b3235d483da924a41ca9cecf72e1c62bab7fedd5.tar.bz2 samba-b3235d483da924a41ca9cecf72e1c62bab7fedd5.zip |
s3:smbd: introduce struct smbXsrv_connection
This will represent a transport connection for SMB 1 or 2
in the server. smbd_server_connection will slowly be moved
to the SMB_VFS layer to satisfy the existing modules,
but it will hopefully be protocol independend in future.
metze
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r-- | source3/smbd/globals.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 56ee251483..0a57013a68 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -326,6 +326,41 @@ bool push_deferred_open_message_smb2(struct smbd_smb2_request *smb2req, char *private_data, size_t priv_len); +struct smbXsrv_connection { + struct smbd_server_connection *sconn; + + const struct tsocket_address *local_address; + const struct tsocket_address *remote_address; + const char *remote_hostname; + + struct tevent_context *ev_ctx; + struct messaging_context *msg_ctx; + + enum protocol_types protocol; + + struct { + struct { + uint32_t capabilities; + struct GUID guid; + uint16_t security_mode; + uint16_t num_dialects; + uint16_t *dialects; + } client; + struct { + uint32_t capabilities; + struct GUID guid; + uint16_t security_mode; + uint16_t dialect; + uint32_t max_trans; + uint32_t max_read; + uint32_t max_write; + } server; + } smb2; +}; + +NTSTATUS smbXsrv_connection_init_tables(struct smbXsrv_connection *conn, + enum protocol_types protocol); + struct smbd_smb2_request { struct smbd_smb2_request *prev, *next; @@ -599,6 +634,8 @@ struct smbd_server_connection { struct bitmap *credits_bitmap; bool compound_related_in_progress; } smb2; + + struct smbXsrv_connection *conn; }; extern struct smbd_server_connection *smbd_server_conn; |