xref: /linux/fs/smb/common/cifsglob.h (revision 4ccb3a800028759b2ba39857cb180589575d7445)
1 /* SPDX-License-Identifier: LGPL-2.1 */
2 /*
3  *
4  *   Copyright (C) International Business Machines  Corp., 2002,2008
5  *   Author(s): Steve French (sfrench@us.ibm.com)
6  *              Jeremy Allison (jra@samba.org)
7  *
8  */
9 #ifndef _COMMON_CIFS_GLOB_H
10 #define _COMMON_CIFS_GLOB_H
11 
inc_rfc1001_len(void * buf,int count)12 static inline void inc_rfc1001_len(void *buf, int count)
13 {
14 	be32_add_cpu((__be32 *)buf, count);
15 }
16 
17 #define SMB1_VERSION_STRING	"1.0"
18 #define SMB20_VERSION_STRING    "2.0"
19 #define SMB21_VERSION_STRING	"2.1"
20 #define SMBDEFAULT_VERSION_STRING "default"
21 #define SMB3ANY_VERSION_STRING "3"
22 #define SMB30_VERSION_STRING	"3.0"
23 #define SMB302_VERSION_STRING	"3.02"
24 #define ALT_SMB302_VERSION_STRING "3.0.2"
25 #define SMB311_VERSION_STRING	"3.1.1"
26 #define ALT_SMB311_VERSION_STRING "3.11"
27 
28 #define CIFS_DEFAULT_IOSIZE (1024 * 1024)
29 
30 #endif	/* _COMMON_CIFS_GLOB_H */
31