diff options
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r-- | fs/cifs/cifspdu.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index 81df2bf8e75a..6df9dadba647 100644 --- a/fs/cifs/cifspdu.h +++ b/fs/cifs/cifspdu.h | |||
@@ -26,7 +26,8 @@ | |||
26 | 26 | ||
27 | #ifdef CONFIG_CIFS_WEAK_PW_HASH | 27 | #ifdef CONFIG_CIFS_WEAK_PW_HASH |
28 | #define LANMAN_PROT 0 | 28 | #define LANMAN_PROT 0 |
29 | #define CIFS_PROT 1 | 29 | #define LANMAN2_PROT 1 |
30 | #define CIFS_PROT 2 | ||
30 | #else | 31 | #else |
31 | #define CIFS_PROT 0 | 32 | #define CIFS_PROT 0 |
32 | #endif | 33 | #endif |
@@ -408,6 +409,8 @@ typedef struct negotiate_req { | |||
408 | 409 | ||
409 | /* Dialect index is 13 for LANMAN */ | 410 | /* Dialect index is 13 for LANMAN */ |
410 | 411 | ||
412 | #define MIN_TZ_ADJ (15 * 60) /* minimum grid for timezones in seconds */ | ||
413 | |||
411 | typedef struct lanman_neg_rsp { | 414 | typedef struct lanman_neg_rsp { |
412 | struct smb_hdr hdr; /* wct = 13 */ | 415 | struct smb_hdr hdr; /* wct = 13 */ |
413 | __le16 DialectIndex; | 416 | __le16 DialectIndex; |
@@ -417,7 +420,10 @@ typedef struct lanman_neg_rsp { | |||
417 | __le16 MaxNumberVcs; | 420 | __le16 MaxNumberVcs; |
418 | __le16 RawMode; | 421 | __le16 RawMode; |
419 | __le32 SessionKey; | 422 | __le32 SessionKey; |
420 | __le32 ServerTime; | 423 | struct { |
424 | __le16 Time; | ||
425 | __le16 Date; | ||
426 | } __attribute__((packed)) SrvTime; | ||
421 | __le16 ServerTimeZone; | 427 | __le16 ServerTimeZone; |
422 | __le16 EncryptionKeyLength; | 428 | __le16 EncryptionKeyLength; |
423 | __le16 Reserved; | 429 | __le16 Reserved; |
@@ -674,7 +680,7 @@ typedef union smb_com_tree_disconnect { /* as an altetnative can use flag on | |||
674 | typedef struct smb_com_close_req { | 680 | typedef struct smb_com_close_req { |
675 | struct smb_hdr hdr; /* wct = 3 */ | 681 | struct smb_hdr hdr; /* wct = 3 */ |
676 | __u16 FileID; | 682 | __u16 FileID; |
677 | __u32 LastWriteTime; /* should be zero */ | 683 | __u32 LastWriteTime; /* should be zero or -1 */ |
678 | __u16 ByteCount; /* 0 */ | 684 | __u16 ByteCount; /* 0 */ |
679 | } __attribute__((packed)) CLOSE_REQ; | 685 | } __attribute__((packed)) CLOSE_REQ; |
680 | 686 | ||