From a8836cae917ddd03f9e8d0934bb0cf329643e60a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Sep 2011 16:06:05 +0200 Subject: [PATCH] s3:include: add some masks for SMB1 CAP_* flags The flags are devided into 3 sections: - client only flags - flags used in both directions - server only flags metze --- source3/include/smb.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/source3/include/smb.h b/source3/include/smb.h index c88b3fd743d..75008fed1e0 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1239,6 +1239,31 @@ http://msdn.microsoft.com/en-us/library/cc246334(PROT.13).aspx #define CAP_DYNAMIC_REAUTH 0x20000000 #define CAP_EXTENDED_SECURITY 0x80000000 +#define SMB_CAP_BOTH_MASK ( \ + CAP_UNICODE | \ + CAP_NT_SMBS | \ + CAP_STATUS32 | \ + CAP_LEVEL_II_OPLOCKS | \ + CAP_EXTENDED_SECURITY | \ + 0) +#define SMB_CAP_SERVER_MASK ( \ + CAP_RAW_MODE | \ + CAP_MPX_MODE | \ + CAP_LARGE_FILES | \ + CAP_RPC_REMOTE_APIS | \ + CAP_LOCK_AND_READ | \ + CAP_NT_FIND | \ + CAP_DFS | \ + CAP_W2K_SMBS | \ + CAP_LARGE_READX | \ + CAP_LARGE_WRITEX | \ + CAP_LWIO | \ + CAP_UNIX | \ + 0) +#define SMB_CAP_CLIENT_MASK ( \ + CAP_DYNAMIC_REAUTH | \ + 0) + /* printing types */ enum printing_types {PRINT_BSD,PRINT_SYSV,PRINT_AIX,PRINT_HPUX, PRINT_QNX,PRINT_PLP,PRINT_LPRNG,PRINT_SOFTQ, -- 2.34.1