CIFS: Add capability to send SMB2 negotiate message

and add negotiate request type to let set_credits know that
we are only on negotiate stage and no need to make a decision
about disabling echos and oplocks.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:
Pavel Shilovsky
2011-12-27 16:12:43 +04:00
committed by Pavel Shilovsky
parent 3792c17328
commit ec2e4523fd
8 changed files with 417 additions and 11 deletions

View File

@@ -388,13 +388,6 @@ vt2_err:
return -EINVAL;
}
static inline void inc_rfc1001_len(void *pSMB, int count)
{
struct smb_hdr *hdr = (struct smb_hdr *)pSMB;
be32_add_cpu(&hdr->smb_buf_length, count);
}
int
CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses)
{