|
@@ -67,27 +67,27 @@ check_smb2_hdr(struct smb2_hdr *hdr, __u64 mid)
|
|
|
* indexed by command in host byte order
|
|
|
*/
|
|
|
static const __le16 smb2_rsp_struct_sizes[NUMBER_OF_SMB2_COMMANDS] = {
|
|
|
- /* SMB2_NEGOTIATE */ __constant_cpu_to_le16(65),
|
|
|
- /* SMB2_SESSION_SETUP */ __constant_cpu_to_le16(9),
|
|
|
- /* SMB2_LOGOFF */ __constant_cpu_to_le16(4),
|
|
|
- /* SMB2_TREE_CONNECT */ __constant_cpu_to_le16(16),
|
|
|
- /* SMB2_TREE_DISCONNECT */ __constant_cpu_to_le16(4),
|
|
|
- /* SMB2_CREATE */ __constant_cpu_to_le16(89),
|
|
|
- /* SMB2_CLOSE */ __constant_cpu_to_le16(60),
|
|
|
- /* SMB2_FLUSH */ __constant_cpu_to_le16(4),
|
|
|
- /* SMB2_READ */ __constant_cpu_to_le16(17),
|
|
|
- /* SMB2_WRITE */ __constant_cpu_to_le16(17),
|
|
|
- /* SMB2_LOCK */ __constant_cpu_to_le16(4),
|
|
|
- /* SMB2_IOCTL */ __constant_cpu_to_le16(49),
|
|
|
+ /* SMB2_NEGOTIATE */ cpu_to_le16(65),
|
|
|
+ /* SMB2_SESSION_SETUP */ cpu_to_le16(9),
|
|
|
+ /* SMB2_LOGOFF */ cpu_to_le16(4),
|
|
|
+ /* SMB2_TREE_CONNECT */ cpu_to_le16(16),
|
|
|
+ /* SMB2_TREE_DISCONNECT */ cpu_to_le16(4),
|
|
|
+ /* SMB2_CREATE */ cpu_to_le16(89),
|
|
|
+ /* SMB2_CLOSE */ cpu_to_le16(60),
|
|
|
+ /* SMB2_FLUSH */ cpu_to_le16(4),
|
|
|
+ /* SMB2_READ */ cpu_to_le16(17),
|
|
|
+ /* SMB2_WRITE */ cpu_to_le16(17),
|
|
|
+ /* SMB2_LOCK */ cpu_to_le16(4),
|
|
|
+ /* SMB2_IOCTL */ cpu_to_le16(49),
|
|
|
/* BB CHECK this ... not listed in documentation */
|
|
|
- /* SMB2_CANCEL */ __constant_cpu_to_le16(0),
|
|
|
- /* SMB2_ECHO */ __constant_cpu_to_le16(4),
|
|
|
- /* SMB2_QUERY_DIRECTORY */ __constant_cpu_to_le16(9),
|
|
|
- /* SMB2_CHANGE_NOTIFY */ __constant_cpu_to_le16(9),
|
|
|
- /* SMB2_QUERY_INFO */ __constant_cpu_to_le16(9),
|
|
|
- /* SMB2_SET_INFO */ __constant_cpu_to_le16(2),
|
|
|
+ /* SMB2_CANCEL */ cpu_to_le16(0),
|
|
|
+ /* SMB2_ECHO */ cpu_to_le16(4),
|
|
|
+ /* SMB2_QUERY_DIRECTORY */ cpu_to_le16(9),
|
|
|
+ /* SMB2_CHANGE_NOTIFY */ cpu_to_le16(9),
|
|
|
+ /* SMB2_QUERY_INFO */ cpu_to_le16(9),
|
|
|
+ /* SMB2_SET_INFO */ cpu_to_le16(2),
|
|
|
/* BB FIXME can also be 44 for lease break */
|
|
|
- /* SMB2_OPLOCK_BREAK */ __constant_cpu_to_le16(24)
|
|
|
+ /* SMB2_OPLOCK_BREAK */ cpu_to_le16(24)
|
|
|
};
|
|
|
|
|
|
int
|