summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-06 13:05:45 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-06 05:32:51 +0200
commit6543987139197800a3e93b768133474ed0c2d0dc (patch)
tree7f8746634cd61b37beb726eb0650754b3d9f7f64 /libcli
parent68e0b262be33a1e25018a2afa1e1280ecc5a96eb (diff)
downloadsamba-6543987139197800a3e93b768133474ed0c2d0dc.tar.gz
samba-6543987139197800a3e93b768133474ed0c2d0dc.tar.bz2
samba-6543987139197800a3e93b768133474ed0c2d0dc.zip
libcli/smb move enum protocol_types to a common header
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smb_constants.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h
index 59a6d9e388..33a2a8d5b7 100644
--- a/libcli/smb/smb_constants.h
+++ b/libcli/smb/smb_constants.h
@@ -22,6 +22,18 @@
#ifndef _SMB_CONSTANTS_H
#define _SMB_CONSTANTS_H
+/* 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,
+ PROTOCOL_SMB2
+};
+
/* NT Flags2 bits - cifs6.txt section 3.1.2 */
#define FLAGS2_LONG_PATH_COMPONENTS 0x0001
#define FLAGS2_EXTENDED_ATTRIBUTES 0x0002