diff options
author | Steve French <sfrench@us.ibm.com> | 2005-08-23 00:38:31 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-08-23 00:38:31 -0400 |
commit | a10faeb2a3e266385cc334fe9af76e08e5e4330f (patch) | |
tree | 1649766060aeb1bd56fc51af769646ac9ec84539 /fs/cifs/cifsglob.h | |
parent | b92327fe6b25d60004b79df9e3c19091c03118ba (diff) |
[CIFS] Support for mounting to older, pre-CIFS servers added. This
allows specifying an RFC1001 target "called" name (netbios name of the
server, which can now be pecified as mount option "servernetbiosname"
but will eventually be passed in automatically on retry of host down
error messages caused when server refuses to handle default server
name and can not handle port 445). This is an important step, but
additional testing and fixup is needed to add remaining function needed
for these.
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 6a8c7d1bee8c..f143975627e0 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -110,7 +110,8 @@ enum protocolEnum { | |||
110 | */ | 110 | */ |
111 | 111 | ||
112 | struct TCP_Server_Info { | 112 | struct TCP_Server_Info { |
113 | char server_Name[SERVER_NAME_LEN_WITH_NULL]; /* 15 chars + X'20' 16th */ | 113 | /* 15 character server name + 0x20 16th byte indicating type = srv */ |
114 | char server_RFC1001_name[SERVER_NAME_LEN_WITH_NULL]; | ||
114 | char unicode_server_Name[SERVER_NAME_LEN_WITH_NULL * 2]; | 115 | char unicode_server_Name[SERVER_NAME_LEN_WITH_NULL * 2]; |
115 | struct socket *ssocket; | 116 | struct socket *ssocket; |
116 | union { | 117 | union { |
@@ -149,7 +150,8 @@ struct TCP_Server_Info { | |||
149 | __u16 timeZone; | 150 | __u16 timeZone; |
150 | __u16 CurrentMid; /* multiplex id - rotating counter */ | 151 | __u16 CurrentMid; /* multiplex id - rotating counter */ |
151 | char cryptKey[CIFS_CRYPTO_KEY_SIZE]; | 152 | char cryptKey[CIFS_CRYPTO_KEY_SIZE]; |
152 | char workstation_RFC1001_name[16]; /* 16th byte is always zero */ | 153 | /* 16th byte of RFC1001 workstation name is always null */ |
154 | char workstation_RFC1001_name[SERVER_NAME_LEN_WITH_NULL]; | ||
153 | __u32 sequence_number; /* needed for CIFS PDU signature */ | 155 | __u32 sequence_number; /* needed for CIFS PDU signature */ |
154 | char mac_signing_key[CIFS_SESSION_KEY_SIZE + 16]; | 156 | char mac_signing_key[CIFS_SESSION_KEY_SIZE + 16]; |
155 | }; | 157 | }; |