summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-28 15:47:05 +0100
committerMichael Adam <obnox@samba.org>2012-03-03 17:03:06 +0100
commit29eed6359ad83f631f2c6019a7e36524d18fe670 (patch)
treee73ec90a1cff58378f6b71723b1b203e0cf445dd
parent0bdd18efc91a926a270cb9661c8a2b743e123a63 (diff)
downloadsamba-29eed6359ad83f631f2c6019a7e36524d18fe670.tar.gz
samba-29eed6359ad83f631f2c6019a7e36524d18fe670.tar.bz2
samba-29eed6359ad83f631f2c6019a7e36524d18fe670.zip
libcli:smb: add defines for SMB2.2 global capabilities
* multi channel * persistent handles * directory leasing * encryption
-rw-r--r--libcli/smb/smb2_constants.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/libcli/smb/smb2_constants.h b/libcli/smb/smb2_constants.h
index e1f2419fb9..2b1223c240 100644
--- a/libcli/smb/smb2_constants.h
+++ b/libcli/smb/smb2_constants.h
@@ -84,10 +84,15 @@
#define SMB2_NEGOTIATE_SIGNING_ENABLED 0x01
#define SMB2_NEGOTIATE_SIGNING_REQUIRED 0x02
-/* SMB2 capabilities - only 1 so far. I'm sure more will be added */
-#define SMB2_CAP_DFS 0x00000001
-#define SMB2_CAP_LEASING 0x00000002 /* only in dialect 0x210 */
-#define SMB2_CAP_LARGE_MTU 0x00000004 /* only in dialect 0x210 */
+/* SMB2 global capabilities */
+#define SMB2_CAP_DFS 0x00000001
+#define SMB2_CAP_LEASING 0x00000002 /* only in dialect >= 0x210 */
+#define SMB2_CAP_LARGE_MTU 0x00000004 /* only in dialect >= 0x210 */
+#define SMB2_CAP_MULTI_CHANNEL 0x00000008 /* only in dialect >= 0x222 */
+#define SMB2_CAP_PERSISTENT_HANDLES 0x00000010 /* only in dialect >= 0x222 */
+#define SMB2_CAP_DIRECTORY_LEASING 0x00000020 /* only in dialect >= 0x222 */
+#define SMB2_CAP_ENCRYPTION 0x00000040 /* only in dialect >= 0x222 */
+
/* so we can spot new caps as added */
#define SMB2_CAP_ALL SMB2_CAP_DFS