summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifspdu.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-05-16 18:48:38 +0000
committerSteve French <sfrench@us.ibm.com>2008-05-16 18:48:38 +0000
commita1fe78f16eac7d03d3c391dd5d54559826574982 (patch)
tree636561017d12be1a5d6e88541fa6ae206c74c8d6 /fs/cifs/cifspdu.h
parentfec4585fd71cc5ec35d134e8c3854f6e8c4503f0 (diff)
downloadlinux-stable-a1fe78f16eac7d03d3c391dd5d54559826574982.tar.gz
linux-stable-a1fe78f16eac7d03d3c391dd5d54559826574982.tar.bz2
linux-stable-a1fe78f16eac7d03d3c391dd5d54559826574982.zip
[CIFS] Add missing defines for DFS
Also has minor cleanup of previous patch CC: Igor Mammedov <niallain@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r--fs/cifs/cifspdu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index 93d5ee02a25b..65d58b4e6a61 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -1904,6 +1904,15 @@ typedef struct smb_com_transaction2_get_dfs_refer_req {
char RequestFileName[1];
} __attribute__((packed)) TRANSACTION2_GET_DFS_REFER_REQ;
+#define DFS_VERSION cpu_to_le16(0x0003)
+
+/* DFS server target type */
+#define DFS_TYPE_LINK 0x0000 /* also for sysvol targets */
+#define DFS_TYPE_ROOT 0x0001
+
+/* Referral Entry Flags */
+#define DFS_NAME_LIST_REF 0x0200
+
typedef struct dfs_referral_level_3 {
__le16 VersionNumber;
__le16 Size;