summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-05-22 22:23:42 +0200
committerStefan Metzmacher <metze@samba.org>2009-05-26 09:39:25 +0200
commitd0051462b99ab3102cebe5ce17bf517b5bdf6c03 (patch)
treed497bf67598a6ac1ec29542b253a91b18e7ceab4 /source4/libcli
parentc36031778e1983ddb11d3e1fcab35e738dbf94bc (diff)
downloadsamba-d0051462b99ab3102cebe5ce17bf517b5bdf6c03.tar.gz
samba-d0051462b99ab3102cebe5ce17bf517b5bdf6c03.tar.bz2
samba-d0051462b99ab3102cebe5ce17bf517b5bdf6c03.zip
s4:libcli/smb2: add some more SMB2 constants
metze
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/smb2_constants.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/source4/libcli/smb2/smb2_constants.h b/source4/libcli/smb2/smb2_constants.h
index 86dfbfedbe..1a69d54e53 100644
--- a/source4/libcli/smb2/smb2_constants.h
+++ b/source4/libcli/smb2/smb2_constants.h
@@ -68,10 +68,15 @@
#define SMB2_MAGIC 0x424D53FE /* 0xFE 'S' 'M' 'B' */
-/* the dialects we support */
-#define SMB2_DIALECT_REVISION 0x202
-#define SMB21_DIALECT_REVISION 0x210
-#define SMB2_LONGHORN_BETA_DIALECT_REVISION 0x0 /* early beta dialect */
+/* SMB2 negotiate dialects */
+#define SMB2_DIALECT_REVISION_000 0x0000 /* early beta dialect */
+#define SMB2_DIALECT_REVISION_202 0x0202
+#define SMB2_DIALECT_REVISION_210 0x0210
+#define SMB2_DIALECT_REVISION_2FF 0x02FF
+
+#define SMB2_DIALECT_REVISION SMB2_DIALECT_REVISION_202
+#define SMB21_DIALECT_REVISION SMB2_DIALECT_REVISION_210
+#define SMB2_LONGHORN_BETA_DIALECT_REVISION SMB2_DIALECT_REVISION_000
/* SMB2 negotiate security_mode */
#define SMB2_NEGOTIATE_SIGNING_ENABLED 0x01
@@ -79,9 +84,14 @@
/* 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 */
/* so we can spot new caps as added */
#define SMB2_CAP_ALL SMB2_CAP_DFS
+/* SMB2 session flags */
+#define SMB2_SESSION_FLAG_IS_GUEST 0x0001
+#define SMB2_SESSION_FLAG_IS_NULL 0x0002
+
/* SMB2 share flags */
#define SMB2_SHAREFLAG_MANUAL_CACHING 0x0000
#define SMB2_SHAREFLAG_AUTO_CACHING 0x0010