From f4e485117a0dea627addfb8518e6517c7104fd9e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Nov 2003 13:19:00 +0000 Subject: * fixed byte order in epmapper parsing * allow rpc transport to be specified on command line in smbtorture (This used to be commit 8a82050fd6f45bcdb31c2c365eaed5fc12599e4f) --- source4/torture/rpc/epmapper.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/epmapper.c b/source4/torture/rpc/epmapper.c index a056f2254e..cef3355b8a 100644 --- a/source4/torture/rpc/epmapper.c +++ b/source4/torture/rpc/epmapper.c @@ -50,7 +50,7 @@ static void display_tower(TALLOC_CTX *mem_ctx, struct epm_towers *twr) printf(" IP:"); if (rhs->rhs_data.length == 4) { struct in_addr in; - in.s_addr = RIVAL(rhs->rhs_data.data, 0); + in.s_addr = IVAL(rhs->rhs_data.data, 0); printf("%s", inet_ntoa(in)); } break; @@ -74,14 +74,14 @@ static void display_tower(TALLOC_CTX *mem_ctx, struct epm_towers *twr) case 0x1f: printf(" TCP:"); if (rhs->rhs_data.length == 2) { - printf("%d", SVAL(rhs->rhs_data.data, 0)); + printf("%d", RSVAL(rhs->rhs_data.data, 0)); } break; default: printf(" UNK(%02x):", lhs->protocol); if (rhs->rhs_data.length == 2) { - printf("%d", SVAL(rhs->rhs_data.data, 0)); + printf("%d", RSVAL(rhs->rhs_data.data, 0)); } break; } @@ -179,10 +179,10 @@ BOOL torture_rpc_epmapper(int dummy) mem_ctx = talloc_init("torture_rpc_epmapper"); - status = torture_rpc_tcp(&p, - DCERPC_EPMAPPER_NAME, - DCERPC_EPMAPPER_UUID, - DCERPC_EPMAPPER_VERSION); + status = torture_rpc_connection(&p, + DCERPC_EPMAPPER_NAME, + DCERPC_EPMAPPER_UUID, + DCERPC_EPMAPPER_VERSION); if (!NT_STATUS_IS_OK(status)) { return False; } -- cgit