summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/epmapper.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-24 13:19:00 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-24 13:19:00 +0000
commitf4e485117a0dea627addfb8518e6517c7104fd9e (patch)
tree6caaaa42897ddc169de7d23990725cf7af2a6bdb /source4/torture/rpc/epmapper.c
parent7befc0648e4366980b7efdf31cc946ea11de5101 (diff)
downloadsamba-f4e485117a0dea627addfb8518e6517c7104fd9e.tar.gz
samba-f4e485117a0dea627addfb8518e6517c7104fd9e.tar.bz2
samba-f4e485117a0dea627addfb8518e6517c7104fd9e.zip
* fixed byte order in epmapper parsing
* allow rpc transport to be specified on command line in smbtorture (This used to be commit 8a82050fd6f45bcdb31c2c365eaed5fc12599e4f)
Diffstat (limited to 'source4/torture/rpc/epmapper.c')
-rw-r--r--source4/torture/rpc/epmapper.c14
1 files changed, 7 insertions, 7 deletions
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;
}