diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-12-27 07:22:00 -0500 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-24 13:54:57 -0400 |
commit | 5478f9ba9a34d660eb3227dcd16314689c51f946 (patch) | |
tree | 6cb95588d403d5a962f6450b68d2daaf23566250 /fs/cifs/smb2pdu.h | |
parent | ec2e4523fdba88317e06d0c7a88af3a0860447fc (diff) |
CIFS: Add session setup/logoff capability for SMB2
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index ef8dae213f60..26af68b2955a 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -187,4 +187,41 @@ struct smb2_negotiate_rsp { | |||
187 | __u8 Buffer[1]; /* variable length GSS security buffer */ | 187 | __u8 Buffer[1]; /* variable length GSS security buffer */ |
188 | } __packed; | 188 | } __packed; |
189 | 189 | ||
190 | struct smb2_sess_setup_req { | ||
191 | struct smb2_hdr hdr; | ||
192 | __le16 StructureSize; /* Must be 25 */ | ||
193 | __u8 VcNumber; | ||
194 | __u8 SecurityMode; | ||
195 | __le32 Capabilities; | ||
196 | __le32 Channel; | ||
197 | __le16 SecurityBufferOffset; | ||
198 | __le16 SecurityBufferLength; | ||
199 | __le64 PreviousSessionId; | ||
200 | __u8 Buffer[1]; /* variable length GSS security buffer */ | ||
201 | } __packed; | ||
202 | |||
203 | /* Currently defined SessionFlags */ | ||
204 | #define SMB2_SESSION_FLAG_IS_GUEST 0x0001 | ||
205 | #define SMB2_SESSION_FLAG_IS_NULL 0x0002 | ||
206 | struct smb2_sess_setup_rsp { | ||
207 | struct smb2_hdr hdr; | ||
208 | __le16 StructureSize; /* Must be 9 */ | ||
209 | __le16 SessionFlags; | ||
210 | __le16 SecurityBufferOffset; | ||
211 | __le16 SecurityBufferLength; | ||
212 | __u8 Buffer[1]; /* variable length GSS security buffer */ | ||
213 | } __packed; | ||
214 | |||
215 | struct smb2_logoff_req { | ||
216 | struct smb2_hdr hdr; | ||
217 | __le16 StructureSize; /* Must be 4 */ | ||
218 | __le16 Reserved; | ||
219 | } __packed; | ||
220 | |||
221 | struct smb2_logoff_rsp { | ||
222 | struct smb2_hdr hdr; | ||
223 | __le16 StructureSize; /* Must be 4 */ | ||
224 | __le16 Reserved; | ||
225 | } __packed; | ||
226 | |||
190 | #endif /* _SMB2PDU_H */ | 227 | #endif /* _SMB2PDU_H */ |