diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-11-05 08:39:01 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-11-05 09:50:57 -0500 |
commit | 0d35e382e4e96a4fd97a1438bc1b11a91d2d85a6 (patch) | |
tree | e2a9b6bfab230869a0d370ebae81b07b2f745fba /fs/cifs/smb2proto.h | |
parent | cifs: add mount parameter tcpnodelay (diff) | |
download | linux-dev-0d35e382e4e96a4fd97a1438bc1b11a91d2d85a6.tar.xz linux-dev-0d35e382e4e96a4fd97a1438bc1b11a91d2d85a6.zip |
cifs: Create a new shared file holding smb2 pdu definitions
This file will contain all the definitions we need for SMB2 packets
and will follow the naming convention of MS-SMB2.PDF as closely
as possible to make it easier to cross-reference beween the definitions
and the standard.
The content of this file will mostly consist of migration of existing
definitions in the cifs/smb2.pdu.h and ksmbd/smb2pdu.h files
with some additional tweaks as the two files have diverged.
This patch introduces the new smbfs_common/smb2pdu.h file
and migrates the SMB2 header as well as TREE_CONNECT and TREE_DISCONNECT
to the shared file.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r-- | fs/cifs/smb2proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h index 547945443fa7..096fada16ebd 100644 --- a/fs/cifs/smb2proto.h +++ b/fs/cifs/smb2proto.h @@ -25,7 +25,7 @@ extern int smb2_check_message(char *buf, unsigned int length, struct TCP_Server_Info *server); extern unsigned int smb2_calc_size(void *buf, struct TCP_Server_Info *server); extern char *smb2_get_data_area_len(int *off, int *len, - struct smb2_sync_hdr *shdr); + struct smb2_hdr *shdr); extern __le16 *cifs_convert_path_to_utf16(const char *from, struct cifs_sb_info *cifs_sb); |