s3:param: add PROTOCOL_SMB2
authorStefan Metzmacher <metze@samba.org>
Tue, 19 May 2009 08:45:38 +0000 (10:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 May 2009 13:42:19 +0000 (15:42 +0200)
metze

source3/include/smb.h
source3/param/loadparm.c

index fed7468f3eea3b35c4f564de43999552a72d66b6..abcd49451c2b9e6b0defe3386951d5483a88cd4d 100644 (file)
@@ -1518,7 +1518,15 @@ char *strdup(char *s);
 
 /* protocol types. It assumes that higher protocols include lower protocols
    as subsets */
-enum protocol_types {PROTOCOL_NONE,PROTOCOL_CORE,PROTOCOL_COREPLUS,PROTOCOL_LANMAN1,PROTOCOL_LANMAN2,PROTOCOL_NT1};
+enum protocol_types {
+       PROTOCOL_NONE,
+       PROTOCOL_CORE,
+       PROTOCOL_COREPLUS,
+       PROTOCOL_LANMAN1,
+       PROTOCOL_LANMAN2,
+       PROTOCOL_NT1,
+       PROTOCOL_SMB2
+};
 
 /* security levels */
 enum security_types {SEC_SHARE,SEC_USER,SEC_SERVER,SEC_DOMAIN,SEC_ADS};
index da3da632600b516a4d2fd798901b1866fc13c661..6da792a8d7a0cb5b28e1ed2a07b047fc7a950d60 100644 (file)
@@ -685,6 +685,7 @@ static void *lp_local_ptr(struct service *service, void *ptr);
 static void add_to_file_list(const char *fname, const char *subfname);
 
 static const struct enum_list enum_protocol[] = {
+       {PROTOCOL_SMB2, "SMB2"},
        {PROTOCOL_NT1, "NT1"},
        {PROTOCOL_LANMAN2, "LANMAN2"},
        {PROTOCOL_LANMAN1, "LANMAN1"},