diff options
| author | Stefan Metzmacher <metze@samba.org> | 2013-11-29 12:04:36 +0100 |
|---|---|---|
| committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 08:37:38 +0100 |
| commit | ef28ed685f55155446a1386d94f8b30b6164be6b (patch) | |
| tree | 7025f8073b13c2e0d73091814ff5d3f240bec1db | |
| parent | 306cba4b8c3bcf5aa1e13296eaebbe212bb35a48 (diff) | |
| download | samba-ef28ed685f55155446a1386d94f8b30b6164be6b.tar.gz samba-ef28ed685f55155446a1386d94f8b30b6164be6b.tar.xz samba-ef28ed685f55155446a1386d94f8b30b6164be6b.zip | |
libcli/smb: move some *TRANSACT_* flags to smb_constants.h
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
| -rw-r--r-- | libcli/smb/smb_constants.h | 34 | ||||
| -rw-r--r-- | source3/include/smb.h | 34 | ||||
| -rw-r--r-- | source4/libcli/raw/smb.h | 13 | ||||
| -rw-r--r-- | source4/libcli/raw/trans2.h | 19 |
4 files changed, 34 insertions, 66 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h index c2133e0744..4b24be07d1 100644 --- a/libcli/smb/smb_constants.h +++ b/libcli/smb/smb_constants.h @@ -434,6 +434,40 @@ enum csc_policy { #define FILE_WAS_CREATED 2 #define FILE_WAS_OVERWRITTEN 3 +/* These are the trans subcommands */ +#define TRANSACT_SETNAMEDPIPEHANDLESTATE 0x01 +#define TRANSACT_DCERPCCMD 0x26 +#define TRANSACT_WAITNAMEDPIPEHANDLESTATE 0x53 + +/* These are the TRANS2 sub commands */ +#define TRANSACT2_OPEN 0 +#define TRANSACT2_FINDFIRST 1 +#define TRANSACT2_FINDNEXT 2 +#define TRANSACT2_QFSINFO 3 +#define TRANSACT2_SETFSINFO 4 +#define TRANSACT2_QPATHINFO 5 +#define TRANSACT2_SETPATHINFO 6 +#define TRANSACT2_QFILEINFO 7 +#define TRANSACT2_SETFILEINFO 8 +#define TRANSACT2_FSCTL 9 +#define TRANSACT2_IOCTL 0xA +#define TRANSACT2_FINDNOTIFYFIRST 0xB +#define TRANSACT2_FINDNOTIFYNEXT 0xC +#define TRANSACT2_MKDIR 0xD +#define TRANSACT2_SESSION_SETUP 0xE +#define TRANSACT2_GET_DFS_REFERRAL 0x10 +#define TRANSACT2_REPORT_DFS_INCONSISTANCY 0x11 + +/* These are the NT transact sub commands. */ +#define NT_TRANSACT_CREATE 1 +#define NT_TRANSACT_IOCTL 2 +#define NT_TRANSACT_SET_SECURITY_DESC 3 +#define NT_TRANSACT_NOTIFY_CHANGE 4 +#define NT_TRANSACT_RENAME 5 +#define NT_TRANSACT_QUERY_SECURITY_DESC 6 +#define NT_TRANSACT_GET_USER_QUOTA 7 +#define NT_TRANSACT_SET_USER_QUOTA 8 + /* ioctl codes */ #define IOCTL_QUERY_JOB_INFO 0x530060 diff --git a/source3/include/smb.h b/source3/include/smb.h index 2b3b730469..1f6813e114 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -266,40 +266,6 @@ Offset Data length. #define smb_vwv16 (smb_vwv+(16*2)) #define smb_vwv17 (smb_vwv+(17*2)) -/* These are the trans subcommands */ -#define TRANSACT_SETNAMEDPIPEHANDLESTATE 0x01 -#define TRANSACT_DCERPCCMD 0x26 -#define TRANSACT_WAITNAMEDPIPEHANDLESTATE 0x53 - -/* These are the TRANS2 sub commands */ -#define TRANSACT2_OPEN 0x00 -#define TRANSACT2_FINDFIRST 0x01 -#define TRANSACT2_FINDNEXT 0x02 -#define TRANSACT2_QFSINFO 0x03 -#define TRANSACT2_SETFSINFO 0x04 -#define TRANSACT2_QPATHINFO 0x05 -#define TRANSACT2_SETPATHINFO 0x06 -#define TRANSACT2_QFILEINFO 0x07 -#define TRANSACT2_SETFILEINFO 0x08 -#define TRANSACT2_FSCTL 0x09 -#define TRANSACT2_IOCTL 0x0A -#define TRANSACT2_FINDNOTIFYFIRST 0x0B -#define TRANSACT2_FINDNOTIFYNEXT 0x0C -#define TRANSACT2_MKDIR 0x0D -#define TRANSACT2_SESSION_SETUP 0x0E -#define TRANSACT2_GET_DFS_REFERRAL 0x10 -#define TRANSACT2_REPORT_DFS_INCONSISTANCY 0x11 - -/* These are the NT transact sub commands. */ -#define NT_TRANSACT_CREATE 1 -#define NT_TRANSACT_IOCTL 2 -#define NT_TRANSACT_SET_SECURITY_DESC 3 -#define NT_TRANSACT_NOTIFY_CHANGE 4 -#define NT_TRANSACT_RENAME 5 -#define NT_TRANSACT_QUERY_SECURITY_DESC 6 -#define NT_TRANSACT_GET_USER_QUOTA 7 -#define NT_TRANSACT_SET_USER_QUOTA 8 - /* These are the NT transact_get_user_quota sub commands */ #define TRANSACT_GET_USER_QUOTA_LIST_CONTINUE 0x0000 #define TRANSACT_GET_USER_QUOTA_LIST_START 0x0100 diff --git a/source4/libcli/raw/smb.h b/source4/libcli/raw/smb.h index 7fbbd0c0c3..5bde657af6 100644 --- a/source4/libcli/raw/smb.h +++ b/source4/libcli/raw/smb.h @@ -206,19 +206,6 @@ incorrect parameters - what does it mean? maybe created temporary file? */ #define NTCREATEX_ACTION_UNKNOWN 5 -/* These are the trans subcommands */ -#define TRANSACT_SETNAMEDPIPEHANDLESTATE 0x01 -#define TRANSACT_DCERPCCMD 0x26 -#define TRANSACT_WAITNAMEDPIPEHANDLESTATE 0x53 - -/* These are the NT transact sub commands. */ -#define NT_TRANSACT_CREATE 1 -#define NT_TRANSACT_IOCTL 2 -#define NT_TRANSACT_SET_SECURITY_DESC 3 -#define NT_TRANSACT_NOTIFY_CHANGE 4 -#define NT_TRANSACT_RENAME 5 -#define NT_TRANSACT_QUERY_SECURITY_DESC 6 - /* Named pipe write mode flags. Used in writeX calls. */ #define PIPE_RAW_MODE 0x4 #define PIPE_START_MESSAGE 0x8 diff --git a/source4/libcli/raw/trans2.h b/source4/libcli/raw/trans2.h index d9a3f5f7d2..c1ec3ae214 100644 --- a/source4/libcli/raw/trans2.h +++ b/source4/libcli/raw/trans2.h @@ -22,25 +22,6 @@ #ifndef _TRANS2_H_ #define _TRANS2_H_ -/* These are the TRANS2 sub commands */ -#define TRANSACT2_OPEN 0 -#define TRANSACT2_FINDFIRST 1 -#define TRANSACT2_FINDNEXT 2 -#define TRANSACT2_QFSINFO 3 -#define TRANSACT2_SETFSINFO 4 -#define TRANSACT2_QPATHINFO 5 -#define TRANSACT2_SETPATHINFO 6 -#define TRANSACT2_QFILEINFO 7 -#define TRANSACT2_SETFILEINFO 8 -#define TRANSACT2_FSCTL 9 -#define TRANSACT2_IOCTL 0xA -#define TRANSACT2_FINDNOTIFYFIRST 0xB -#define TRANSACT2_FINDNOTIFYNEXT 0xC -#define TRANSACT2_MKDIR 0xD -#define TRANSACT2_SESSION_SETUP 0xE -#define TRANSACT2_GET_DFS_REFERRAL 0x10 -#define TRANSACT2_REPORT_DFS_INCONSISTANCY 0x11 - /* trans2 Query FS info levels */ /* |
