Files
amiga-smbfs/source_code/include/smb/smb_fs_sb.h
T
obarthel afe7b87f24 Updated to version 1.132
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-19 15:43:09 +02:00

99 lines
2.9 KiB
C

/*
* :ts=4
*
* smb_fs_sb.h
*
* Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke
* Modified for use with AmigaOS by Olaf Barthel <obarthel -at- gmx -dot- net>
*/
#ifndef _SMB_FS_SB
#define _SMB_FS_SB
#include <smb/smb.h>
#include <smb/smb_mount.h>
struct smb_server
{
enum smb_protocol protocol; /* The protocol this
connection accepts. */
dword max_buffer_size; /* Maximum SMB message size, including
message header, parameter and
data blocks */
dword max_raw_size; /* Maximum SMB_COM_WRITE_RAW and
SMB_COM_READ_RAW data. */
int max_recv; /* added by CS */
word server_uid;
word tid;
struct smb_mount_data mount_data; /* We store the complete information here
to be able to reconnect. */
unsigned short rcls; /* The error codes we received */
unsigned short err;
unsigned char *transmit_buffer;
int transmit_buffer_size; /* Maximum size of the SMB message */
int transmit_buffer_allocation_size; /* Amount of memory allocated for the transmit buffer */
int security_mode;
int crypt_key_length;
unsigned char crypt_key[8];
struct smba_server * abstraction;
enum smb_conn_state state;
/* The following are LANMAN 1.0 options transferred to us in SMBnegprot */
dword capabilities;
/* olsen (2012-12-10): raw SMB over TCP instead of NBT transport? */
int raw_smb;
/* olsen (2016-04-20): Use write-behind with SMB_COM_WRITE_RAW? */
int write_behind;
/* olsen (2016-04-20): Prefer SMB_COM_WRITE_RAW to SMB_COM_WRITE? */
int prefer_write_raw;
/* olsen (2018-05-08): Always use SMB_COM_WRITE, even if SMB_COM_WRITE_RAW were possible. */
int disable_write_raw;
/* olsen (2018-05-08): Always use SMB_COM_READ, even if SMB_COM_READ_RAW were possible. */
int disable_read_raw;
/* olsen (2018-05-09): Timeout for send/receive operations in seconds. */
int timeout;
/* olsen (2018-05-14): Don't retry establishing a server connection. */
int dont_retry;
/* olsen (2018-05-18): Override the "Native OS" name passed to the server. */
char * native_os;
};
#define NEGOTIATE_USER_SECURITY 0x01 /* If set, the server supports
only user level access control.
If clear, the server supports
only share level access
control. */
#define NEGOTIATE_ENCRYPT_PASSWORDS 0x02 /* If set, the server supports
challenge/response
authentication. If clear,
the server supports only
plaintext password
authentication. */
#define CAP_RAW_MODE 0x00000001 /* The server supports SMB_COM_WRITE_RAW
and SMB_COM_READ_RAW requests. */
#define CAP_LARGE_READX 0x00004000 /* The server permits SMB_COM_READ_ANDX
to read up to 65535 bytes. */
#define CAP_LARGE_WRITEX 0x00008000 /* The server permits SMB_COM_WRITE_ANDX
to write up to 65535 bytes. */
#endif