libcli: Move IO_REPARSE_TAG definitions to smb_constants.h
authorVolker Lendecke <vl@samba.org>
Tue, 9 Jun 2020 15:18:35 +0000 (17:18 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 15 Jun 2020 17:59:39 +0000 (17:59 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smb_constants.h
source3/include/ntioctl.h

index 07c22209881e05216e93eecd4d4548741c84da3c..ee350d14154db2111e1d60549421f400aaca93e2 100644 (file)
@@ -582,4 +582,20 @@ enum csc_policy {
        (FSCTL_NETWORK_FILESYSTEM | FSCTL_ACCESS_ANY | 0x0200 | FSCTL_METHOD_BUFFERED)
 #define FSCTL_VALIDATE_NEGOTIATE_INFO  (FSCTL_NETWORK_FILESYSTEM | FSCTL_ACCESS_ANY | 0x0204 | FSCTL_METHOD_BUFFERED)
 
+/*
+ * A few values from [MS-FSCC] 2.1.2.1 Reparse Tags
+ */
+
+#define IO_REPARSE_TAG_SYMLINK      0xA000000C
+#define IO_REPARSE_TAG_MOUNT_POINT   0xA0000003
+#define IO_REPARSE_TAG_HSM           0xC0000004
+#define IO_REPARSE_TAG_SIS           0x80000007
+#define IO_REPARSE_TAG_DFS          0x8000000A
+#define IO_REPARSE_TAG_NFS          0x80000014
+
+/*
+ * Flag from [MS-FSCC] 2.1.2.4 Symbolic Link Reparse Data Buffer
+ */
+#define SYMLINK_FLAG_RELATIVE       0x00000001
+
 #endif /* _SMB_CONSTANTS_H */
index 199a2476cb674b2bcc2f2b10b32d01ae210bb4ef..1c2e5d5eb0792c2b593567628494769025ff394c 100644 (file)
 #ifndef _NTIOCTL_H
 #define _NTIOCTL_H
 
-#define IO_REPARSE_TAG_SYMLINK      0xA000000C
-#define SYMLINK_FLAG_RELATIVE       0x00000001
-
-#define IO_REPARSE_TAG_MOUNT_POINT   0xA0000003
-#define IO_REPARSE_TAG_HSM           0xC0000004
-#define IO_REPARSE_TAG_SIS           0x80000007
-#define IO_REPARSE_TAG_DFS          0x8000000A
-#define IO_REPARSE_TAG_NFS          0x80000014
-
 /* Sub-types for IO_REPARSE_TAG_NFS */
 #define NFS_SPECFILE_LNK            0x00000000014B4E4C
 #define NFS_SPECFILE_CHR            0x0000000000524843