aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-07-12 10:30:44 -0400
committerPavel Shilovsky <pshilovsky@samba.org>2012-07-24 13:55:17 -0400
commit9094fad1ed90caebd25b1bdec3c8982d079356ee (patch)
treea6a111f572f18533d31d80a771fe848507cb26b6 /fs/cifs/smb2pdu.h
parentf6d7617862e106affc59c6933099e45629af5c4e (diff)
CIFS: Add echo request support for SMB2
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r--fs/cifs/smb2pdu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index 9151e9040b02..59aae608d366 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -448,6 +448,18 @@ struct smb2_close_rsp {
448 __le32 Attributes; 448 __le32 Attributes;
449} __packed; 449} __packed;
450 450
451struct smb2_echo_req {
452 struct smb2_hdr hdr;
453 __le16 StructureSize; /* Must be 4 */
454 __u16 Reserved;
455} __packed;
456
457struct smb2_echo_rsp {
458 struct smb2_hdr hdr;
459 __le16 StructureSize; /* Must be 4 */
460 __u16 Reserved;
461} __packed;
462
451/* Possible InfoType values */ 463/* Possible InfoType values */
452#define SMB2_O_INFO_FILE 0x01 464#define SMB2_O_INFO_FILE 0x01
453#define SMB2_O_INFO_FILESYSTEM 0x02 465#define SMB2_O_INFO_FILESYSTEM 0x02