aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-02-13 20:36:20 -0500
committerSteve French <sfrench@us.ibm.com>2006-02-13 20:36:20 -0500
commit5815449d1bfcb22f74b0e36a8b0631d6584cb7fc (patch)
treec97d3456c9df46ab3e73d8b0e9197d4dc1034697 /fs/cifs/cifssmb.c
parentb580513e841d81eebf0d7b02f412be0882c2ce5f (diff)
[CIFS] SessionSetup cleanup part 2
The cifs session setup code has three cases, and a fourth for backlevel LANMAN2 style session setup needed to be added. This new session setup implmentation will eventually replace the other three and should be easier to read while fixing a few minor problems (not setting the LARGE READ/WRITEX flags when NTLMSSP was negotiated for example) and adding support for NTLMv2 (which will be added with the next patch. In the meantime, this code is marked in an CONFIG_CIFS_EXPERIMENTAL block and will not be turned on by default until it is tested against more server types. Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index fcf98cfd4158..38ab9f67c5f4 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -186,15 +186,17 @@ small_smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
186 cifs_stats_inc(&tcon->num_smbs_sent); 186 cifs_stats_inc(&tcon->num_smbs_sent);
187 187
188 return rc; 188 return rc;
189} 189}
190
191#ifdef CONFIG_CIFS_EXPERIMENTAL
190int 192int
191small_smb_init_no_tcon(int smb_command, int wct, struct cifsSesInfo *ses, 193small_smb_init_no_tc(const int smb_command, const int wct,
192 void **request_buf) 194 struct cifsSesInfo *ses, void **request_buf)
193{ 195{
194 int rc; 196 int rc;
195 struct smb_hdr * buffer; 197 struct smb_hdr * buffer;
196 198
197 rc = small_smb_init(smb_command, wct, 0, request_buf); 199 rc = small_smb_init(smb_command, wct, NULL, request_buf);
198 if(rc) 200 if(rc)
199 return rc; 201 return rc;
200 202
@@ -212,7 +214,7 @@ small_smb_init_no_tcon(int smb_command, int wct, struct cifsSesInfo *ses,
212 214
213 return rc; 215 return rc;
214} 216}
215 217#endif /* CONFIG_CIFS_EXPERIMENTAL */
216 218
217/* If the return code is zero, this function must fill in request_buf pointer */ 219/* If the return code is zero, this function must fill in request_buf pointer */
218static int 220static int