summaryrefslogtreecommitdiff
path: root/source4/utils/ndrdump.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-24 01:24:29 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-24 01:24:29 +0000
commitc7fd83d0b280810f16f7ef99ba58efb007f93920 (patch)
tree4a3cb1b009b6a4ed5980a4bc1cd30376c003f0b1 /source4/utils/ndrdump.c
parent27b1dbaea64e02eccf07ff6643bffc2991264533 (diff)
downloadsamba-c7fd83d0b280810f16f7ef99ba58efb007f93920.tar.gz
samba-c7fd83d0b280810f16f7ef99ba58efb007f93920.tar.bz2
samba-c7fd83d0b280810f16f7ef99ba58efb007f93920.zip
added the dcerpc remote management interfaces as mgmt.idl, and wrote a
test suite. The test suite dumps all of the interfaces available on all pipes. There sure are a lot more interfaces on w2k3 than w2k ! (This used to be commit f94bc079902d725b63155d8d2de5bf408c6e7335)
Diffstat (limited to 'source4/utils/ndrdump.c')
-rw-r--r--source4/utils/ndrdump.c28
1 files changed, 6 insertions, 22 deletions
diff --git a/source4/utils/ndrdump.c b/source4/utils/ndrdump.c
index 6118192b33..7916ccec34 100644
--- a/source4/utils/ndrdump.c
+++ b/source4/utils/ndrdump.c
@@ -20,35 +20,19 @@
#include "includes.h"
-struct dcerpc_interface_table *pipes[] = {
- &dcerpc_table_samr,
- &dcerpc_table_lsarpc,
- &dcerpc_table_netdfs,
- &dcerpc_table_atsvc,
- &dcerpc_table_dcerpc,
- &dcerpc_table_rpcecho,
- &dcerpc_table_epmapper,
- &dcerpc_table_eventlog,
- &dcerpc_table_spoolss,
- &dcerpc_table_srvsvc,
- &dcerpc_table_winreg,
- &dcerpc_table_wkssvc,
- NULL
-};
-
static struct dcerpc_interface_table *find_pipe(const char *pipe_name)
{
int i;
- for (i=0;pipes[i];i++) {
- if (strcmp(pipes[i]->name, pipe_name) == 0) {
+ for (i=0;dcerpc_pipes[i];i++) {
+ if (strcmp(dcerpc_pipes[i]->name, pipe_name) == 0) {
break;
}
}
- if (!pipes[i]) {
+ if (!dcerpc_pipes[i]) {
printf("pipe '%s' not in table\n", pipe_name);
exit(1);
}
- return pipes[i];
+ return dcerpc_pipes[i];
}
static const struct dcerpc_interface_call *find_function(
@@ -80,8 +64,8 @@ static void show_pipes(void)
usage();
printf("\nYou must specify a pipe\n");
printf("known pipes are:\n");
- for (i=0;pipes[i];i++) {
- printf("\t%s\n", pipes[i]->name);
+ for (i=0;dcerpc_pipes[i];i++) {
+ printf("\t%s\n", dcerpc_pipes[i]->name);
}
exit(1);
}