summaryrefslogtreecommitdiff
path: root/libcli/smb/smb2_constants.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-05-21 16:56:10 -0700
committerJeremy Allison <jra@samba.org>2010-05-21 16:56:10 -0700
commitb2a7ad8c951562d1aea6663064784da0b0a98565 (patch)
tree2bd42fcd58d6efed103ad625d04075ded559181e /libcli/smb/smb2_constants.h
parent6af5e7cde198ac21ed8030fd3744ab0ae7f15fd3 (diff)
downloadsamba-b2a7ad8c951562d1aea6663064784da0b0a98565.tar.gz
samba-b2a7ad8c951562d1aea6663064784da0b0a98565.tar.bz2
samba-b2a7ad8c951562d1aea6663064784da0b0a98565.zip
Make DFS work over SMB2.
Jeremy.
Diffstat (limited to 'libcli/smb/smb2_constants.h')
-rw-r--r--libcli/smb/smb2_constants.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcli/smb/smb2_constants.h b/libcli/smb/smb2_constants.h
index 3047809b74..a3885f9b7d 100644
--- a/libcli/smb/smb2_constants.h
+++ b/libcli/smb/smb2_constants.h
@@ -81,6 +81,7 @@
/* 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 */
/* so we can spot new caps as added */
#define SMB2_CAP_ALL SMB2_CAP_DFS
@@ -88,6 +89,11 @@
#define SMB2_SESSION_FLAG_IS_GUEST 0x0001
#define SMB2_SESSION_FLAG_IS_NULL 0x0002
+/* SMB2 sharetype flags */
+#define SMB2_SHARE_TYPE_DISK 0x1
+#define SMB2_SHARE_TYPE_PIPE 0x2
+#define SMB2_SHARE_TYPE_PRINT 0x3
+
/* SMB2 share flags */
#define SMB2_SHAREFLAG_MANUAL_CACHING 0x0000
#define SMB2_SHAREFLAG_AUTO_CACHING 0x0010
@@ -101,6 +107,9 @@
#define SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM 0x0800
#define SMB2_SHAREFLAG_ALL 0x0F33
+/* SMB2 share capafilities */
+#define SMB2_SHARE_CAP_DFS 0x8
+
/* SMB2 create security flags */
#define SMB2_SECURITY_DYNAMIC_TRACKING 0x01
#define SMB2_SECURITY_EFFECTIVE_ONLY 0x02