Add epmapper pipe
authorJim McDonough <jmcd@samba.org>
Fri, 17 Oct 2003 15:07:23 +0000 (15:07 +0000)
committerJim McDonough <jmcd@samba.org>
Fri, 17 Oct 2003 15:07:23 +0000 (15:07 +0000)
(This used to be commit 041c17bd665ea5fa771b111d7008036fb3e7b72f)

source3/include/ntdomain.h
source3/include/smb.h
source3/rpc_parse/parse_rpc.c

index ccbc190c59d65e67e2142580ef3bf4f035fb2f6c..66057424cab9d488fb4c02eeb9287741c45ef7b8 100644 (file)
@@ -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 */
index 8c6f47f23fbbb087d8d5a7a1f2c163e9bb05a15a..1e4c48132ac9e44802aa64e74c0b18d19ccfeae1 100644 (file)
@@ -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
index 1ea59feaedbb7241801c656f118b6b34b8c9a8c5..57ebe5d35604db5731503495d232af64975d68a4 100644 (file)
@@ -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;