diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-06-01 10:53:02 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-05-31 21:30:50 -0500 |
commit | 977b6170407894fcdd9bf8ea82dac563abda79e7 (patch) | |
tree | 93f5305f333f2028d664bd995183f9550506286d /fs/cifs/smb2pdu.h | |
parent | b2adf22fdfba85a6701c481faccdbbb3a418ccfc (diff) | |
download | linux-stable-977b6170407894fcdd9bf8ea82dac563abda79e7.tar.gz linux-stable-977b6170407894fcdd9bf8ea82dac563abda79e7.tar.bz2 linux-stable-977b6170407894fcdd9bf8ea82dac563abda79e7.zip |
cifs: remove rfc1002 header from all SMB2 response structures
Separate out all the 4 byte rfc1002 headers so that they are no longer
part of the SMB2 header structures to prepare for future work to add
compounding support.
Update the smb3 transform header processing that we no longer have
a rfc1002 header at the start of this structure.
Update smb2_readv_callback to accommodate that the first iovector in the
response is no the smb2 header and no longer a rfc1002 header.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 9182f17eeb73..1581dda58730 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h @@ -123,9 +123,6 @@ struct smb2_sync_pdu { } __packed; struct smb2_hdr { - __be32 smb2_buf_length; /* big endian on wire */ - /* length is only two or three bytes - with */ - /* one or two byte type preceding it that MBZ */ struct smb2_sync_hdr sync_hdr; } __packed; @@ -138,9 +135,6 @@ struct smb2_pdu { #define SMB3_AES128GCM_NONCE 12 struct smb2_transform_hdr { - __be32 smb2_buf_length; /* big endian on wire */ - /* length is only two or three bytes - with - one or two byte type preceding it that MBZ */ __le32 ProtocolId; /* 0xFD 'S' 'M' 'B' */ __u8 Signature[16]; __u8 Nonce[16]; |