From ba33beec050bdc4bf0452761c481ea41985b831f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 28 Nov 2003 05:20:11 +0000 Subject: * added a bunch of placeholder IDL files * allow for an interface to list its endpoints in the IDL file, so we can automatically make the server listen on the right pipes, and can scan pipes more easily (I don't take advantage of this yet, just putting the infrastructure in place) (This used to be commit c8b8480244b4ab6204403dc65e92e4317b410a84) --- source4/torture/rpc/epmapper.c | 5 +++++ source4/torture/rpc/mgmt.c | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/epmapper.c b/source4/torture/rpc/epmapper.c index 22d8ee4343..65e431bdc2 100644 --- a/source4/torture/rpc/epmapper.c +++ b/source4/torture/rpc/epmapper.c @@ -118,6 +118,11 @@ static BOOL test_Map(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, r.out.entry_handle = &handle; r.in.max_towers = 100; + if (twr->towers.num_floors != 5) { + printf(" tower has %d floors - skipping test_Map\n", twr->towers.num_floors); + return True; + } + uuid_str = GUID_string(mem_ctx, &twr->towers.floors[0].lhs.info.uuid.uuid); printf("epm_Map results for '%s':\n", diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c index 75839e3900..24bf080ffb 100644 --- a/source4/torture/rpc/mgmt.c +++ b/source4/torture/rpc/mgmt.c @@ -49,11 +49,16 @@ static BOOL test_inq_if_ids(struct dcerpc_pipe *p, } for (i=0;icount;i++) { + const char *uuid; struct dcerpc_syntax_id *id = r.out.if_id_vector->if_id[i].id; if (!id) continue; - printf("\tuuid %s version 0x%04x:0x%04x\n", - GUID_string(mem_ctx, &id->uuid), - id->major_version, id->minor_version); + + uuid = GUID_string(mem_ctx, &id->uuid); + + printf("\tuuid %s version 0x%04x:0x%04x '%s'\n", + uuid, + id->major_version, id->minor_version, + idl_pipe_name(uuid, id->major_version)); } return True; -- cgit