cifs: add server->vals->header_preamble_size
authorRonnie Sahlberg <lsahlber@redhat.com>
Sat, 31 Mar 2018 00:45:31 +0000 (11:45 +1100)
committerSteve French <smfrench@gmail.com>
Mon, 2 Apr 2018 18:09:44 +0000 (13:09 -0500)
commit93012bf984163f6616d1ab606a7cd86095c052c6
tree5f72bd3f1e727d2e1d85a33be1a95cc5ab350971
parent21a4e14aaedbc85f203d37e56cb26235b22b43f6
cifs: add server->vals->header_preamble_size

This variable is set to 4 for all protocol versions and replaces
the hardcoded constant 4 throughought the code.
This will later be updated to reflect whether a response packet
has a 4 byte length preamble or not once we start removing this
field from the SMB2+ dialects.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/smb1ops.c
fs/cifs/smb2misc.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/transport.c