diff options
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r-- | fs/cifs/cifspdu.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index 6a2056e58ceb..c41ff74e9128 100644 --- a/fs/cifs/cifspdu.h +++ b/fs/cifs/cifspdu.h | |||
@@ -215,6 +215,12 @@ | |||
215 | /* file_execute, file_read_attributes*/ | 215 | /* file_execute, file_read_attributes*/ |
216 | /* write_dac, and delete. */ | 216 | /* write_dac, and delete. */ |
217 | 217 | ||
218 | #define FILE_READ_RIGHTS (FILE_READ_DATA | FILE_READ_EA | FILE_READ_ATTRIBUTES) | ||
219 | #define FILE_WRITE_RIGHTS (FILE_WRITE_DATA | FILE_APPEND_DATA \ | ||
220 | | FILE_WRITE_EA | FILE_WRITE_ATTRIBUTES) | ||
221 | #define FILE_EXEC_RIGHTS (FILE_EXECUTE) | ||
222 | |||
223 | |||
218 | /* | 224 | /* |
219 | * Invalid readdir handle | 225 | * Invalid readdir handle |
220 | */ | 226 | */ |
@@ -360,10 +366,10 @@ struct smb_hdr { | |||
360 | __u8 WordCount; | 366 | __u8 WordCount; |
361 | } __attribute__((packed)); | 367 | } __attribute__((packed)); |
362 | /* given a pointer to an smb_hdr retrieve the value of byte count */ | 368 | /* given a pointer to an smb_hdr retrieve the value of byte count */ |
363 | #define BCC(smb_var) ( *(__u16 *)((char *)smb_var + sizeof(struct smb_hdr) + (2* smb_var->WordCount) ) ) | 369 | #define BCC(smb_var) ( *(__u16 *)((char *)smb_var + sizeof(struct smb_hdr) + (2 * smb_var->WordCount))) |
364 | #define BCC_LE(smb_var) ( *(__le16 *)((char *)smb_var + sizeof(struct smb_hdr) + (2* smb_var->WordCount) ) ) | 370 | #define BCC_LE(smb_var) ( *(__le16 *)((char *)smb_var + sizeof(struct smb_hdr) + (2 * smb_var->WordCount))) |
365 | /* given a pointer to an smb_hdr retrieve the pointer to the byte area */ | 371 | /* given a pointer to an smb_hdr retrieve the pointer to the byte area */ |
366 | #define pByteArea(smb_var) ((unsigned char *)smb_var + sizeof(struct smb_hdr) + (2* smb_var->WordCount) + 2 ) | 372 | #define pByteArea(smb_var) ((unsigned char *)smb_var + sizeof(struct smb_hdr) + (2 * smb_var->WordCount) + 2) |
367 | 373 | ||
368 | /* | 374 | /* |
369 | * Computer Name Length (since Netbios name was length 16 with last byte 0x20) | 375 | * Computer Name Length (since Netbios name was length 16 with last byte 0x20) |
@@ -716,6 +722,14 @@ typedef struct smb_com_findclose_req { | |||
716 | #define REQ_OPENDIRONLY 0x00000008 | 722 | #define REQ_OPENDIRONLY 0x00000008 |
717 | #define REQ_EXTENDED_INFO 0x00000010 | 723 | #define REQ_EXTENDED_INFO 0x00000010 |
718 | 724 | ||
725 | /* File type */ | ||
726 | #define DISK_TYPE 0x0000 | ||
727 | #define BYTE_PIPE_TYPE 0x0001 | ||
728 | #define MESSAGE_PIPE_TYPE 0x0002 | ||
729 | #define PRINTER_TYPE 0x0003 | ||
730 | #define COMM_DEV_TYPE 0x0004 | ||
731 | #define UNKNOWN_TYPE 0xFFFF | ||
732 | |||
719 | typedef struct smb_com_open_req { /* also handles create */ | 733 | typedef struct smb_com_open_req { /* also handles create */ |
720 | struct smb_hdr hdr; /* wct = 24 */ | 734 | struct smb_hdr hdr; /* wct = 24 */ |
721 | __u8 AndXCommand; | 735 | __u8 AndXCommand; |