summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-10-17 15:07:23 +0000
committerJim McDonough <jmcd@samba.org>2003-10-17 15:07:23 +0000
commitd807bc12fb1d208de9b4f9e2532810cf1a9e3695 (patch)
tree88f2616cc3d6114ceff1f8f7208e350f09014515 /source3
parenta6ff6254dad51acfc484c0ef92c1c484d466f509 (diff)
downloadsamba-d807bc12fb1d208de9b4f9e2532810cf1a9e3695.tar.gz
samba-d807bc12fb1d208de9b4f9e2532810cf1a9e3695.tar.bz2
samba-d807bc12fb1d208de9b4f9e2532810cf1a9e3695.zip
Add epmapper pipe
(This used to be commit 041c17bd665ea5fa771b111d7008036fb3e7b72f)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/ntdomain.h1
-rw-r--r--source3/include/smb.h4
-rw-r--r--source3/rpc_parse/parse_rpc.c12
3 files changed, 15 insertions, 2 deletions
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h
index ccbc190c59..66057424ca 100644
--- a/source3/include/ntdomain.h
+++ b/source3/include/ntdomain.h
@@ -402,5 +402,6 @@ struct acct_info
#include "rpc_dfs.h"
#include "rpc_ds.h"
#include "rpc_echo.h"
+#include "rpc_epmapper.h"
#endif /* _NT_DOMAIN_H */
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 8c6f47f23f..1e4c48132a 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -194,6 +194,7 @@ typedef smb_ucs2_t wfstring[FSTRING_LEN];
#define PIPE_SPOOLSS "\\PIPE\\spoolss"
#define PIPE_NETDFS "\\PIPE\\netdfs"
#define PIPE_ECHO "\\PIPE\\rpcecho"
+#define PIPE_EPM "\\PIPE\\epmapper"
#define PIPE_NETLOGON_PLAIN "\\NETLOGON"
@@ -207,7 +208,8 @@ typedef smb_ucs2_t wfstring[FSTRING_LEN];
#define PI_SPOOLSS 7
#define PI_NETDFS 8
#define PI_ECHO 9
-#define PI_MAX_PIPES 10
+#define PI_EPM 10
+#define PI_MAX_PIPES 11
/* 64 bit time (100usec) since ????? - cifs6.txt, section 3.5, page 30 */
typedef struct nttime_info
diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c
index 1ea59feaed..57ebe5d356 100644
--- a/source3/rpc_parse/parse_rpc.c
+++ b/source3/rpc_parse/parse_rpc.c
@@ -147,6 +147,15 @@ interface/version dce/rpc pipe identification
}, 0x01 \
}
+#define SYNT_EPM_V3 \
+{ \
+ { \
+ 0xe1af8308, 0x5d1f, 0x11c9, \
+ { 0x91, 0xa4, 0x08, 0x00, \
+ 0x2b, 0x14, 0xa0, 0xfa } \
+ }, 0x03 \
+}
+
/*
* IMPORTANT!! If you update this structure, make sure to
* update the index #defines in smb.h.
@@ -165,6 +174,7 @@ const struct pipe_id_info pipe_names [] =
{ PIPE_SPOOLSS , SYNT_SPOOLSS_V1 , PIPE_SPOOLSS , TRANS_SYNT_V2 },
{ PIPE_NETDFS , SYNT_NETDFS_V3 , PIPE_NETDFS , TRANS_SYNT_V2 },
{ PIPE_ECHO , SYNT_ECHO_V1 , PIPE_ECHO , TRANS_SYNT_V2 },
+ { PIPE_EPM , SYNT_EPM_V3 , PIPE_EPM , TRANS_SYNT_V2 },
{ NULL , SYNT_NONE_V0 , NULL , SYNT_NONE_V0 }
};
@@ -246,7 +256,7 @@ BOOL smb_io_rpc_hdr(const char *desc, RPC_HDR *rpc, prs_struct *ps, int depth)
Reads or writes an RPC_UUID structure.
********************************************************************/
-static BOOL smb_io_rpc_uuid(const char *desc, RPC_UUID *uuid, prs_struct *ps, int depth)
+BOOL smb_io_rpc_uuid(const char *desc, RPC_UUID *uuid, prs_struct *ps, int depth)
{
if (uuid == NULL)
return False;