From b2a7ad8c951562d1aea6663064784da0b0a98565 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 21 May 2010 16:56:10 -0700 Subject: Make DFS work over SMB2. Jeremy. --- libcli/smb/smb2_constants.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libcli/smb/smb2_constants.h') 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 -- cgit