mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
SMB3: Add new compression flags
Additional compression capabilities can now be negotiated and a new compression algorithm. Add the flags for these. See newly updated MS-SMB2 sections 3.1.4.4.1 and 2.2.3.1.3 Signed-off-by: Steve French <stfrench@microsoft.com> Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
This commit is contained in:
parent
cff2def598
commit
2fe4f62de4
1 changed files with 7 additions and 1 deletions
|
@ -307,11 +307,17 @@ struct smb2_encryption_neg_context {
|
||||||
#define SMB3_COMPRESS_LZNT1 cpu_to_le16(0x0001)
|
#define SMB3_COMPRESS_LZNT1 cpu_to_le16(0x0001)
|
||||||
#define SMB3_COMPRESS_LZ77 cpu_to_le16(0x0002)
|
#define SMB3_COMPRESS_LZ77 cpu_to_le16(0x0002)
|
||||||
#define SMB3_COMPRESS_LZ77_HUFF cpu_to_le16(0x0003)
|
#define SMB3_COMPRESS_LZ77_HUFF cpu_to_le16(0x0003)
|
||||||
|
/* Pattern scanning algorithm See MS-SMB2 3.1.4.4.1 */
|
||||||
|
#define SMB3_COMPRESS_PATTERN cpu_to_le16(0x0004)
|
||||||
|
|
||||||
|
/* Compression Flags */
|
||||||
|
#define SMB2_COMPRESSION_CAPABILITIES_FLAG_NONE cpu_to_le32(0x00000000)
|
||||||
|
#define SMB2_COMPRESSION_CAPABILITIES_FLAG_CHAINED cpu_to_le32(0x00000001)
|
||||||
|
|
||||||
struct smb2_compression_capabilities_context {
|
struct smb2_compression_capabilities_context {
|
||||||
__le16 ContextType; /* 3 */
|
__le16 ContextType; /* 3 */
|
||||||
__le16 DataLength;
|
__le16 DataLength;
|
||||||
__u32 Reserved;
|
__u32 Flags;
|
||||||
__le16 CompressionAlgorithmCount;
|
__le16 CompressionAlgorithmCount;
|
||||||
__u16 Padding;
|
__u16 Padding;
|
||||||
__u32 Reserved1;
|
__u32 Reserved1;
|
||||||
|
|
Loading…
Reference in a new issue