diff options
Diffstat (limited to 'fs/smb/common/smbglob.h')
| -rw-r--r-- | fs/smb/common/smbglob.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/smb/common/smbglob.h b/fs/smb/common/smbglob.h index 84aa6826c3ea..b258199b0d75 100644 --- a/fs/smb/common/smbglob.h +++ b/fs/smb/common/smbglob.h @@ -40,6 +40,11 @@ struct smb_version_values { size_t create_posix_size; }; +static inline unsigned int get_rfc1002_len(void *buf) +{ + return be32_to_cpu(*((__be32 *)buf)) & 0xffffff; +} + static inline void inc_rfc1001_len(void *buf, int count) { be32_add_cpu((__be32 *)buf, count); |