From 1bb3e99d063332ac9d8af92cb3210465cfa66fb4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 22 Mar 2005 14:49:11 +0000 Subject: r5949: give things more meaning, and reuse structs where it is possible to make things more clear metze (This used to be commit adefeeb4f362dba06cddacf6f58194ef1f967ec9) --- source4/torture/rpc/drsuapi.c | 72 +++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c index 88ff85d8da..9774a92a8a 100644 --- a/source4/torture/rpc/drsuapi.c +++ b/source4/torture/rpc/drsuapi.c @@ -912,45 +912,45 @@ static BOOL test_DsGetNCChanges(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, switch (r.in.level) { case 5: - nc.guid = null_guid; - nc.sid = null_sid; - nc.dn = priv->domain_obj_dn?priv->domain_obj_dn:""; - - r.in.req.req5.guid1 = null_guid; - r.in.req.req5.guid2 = null_guid; - r.in.req.req5.naming_context = &nc; - r.in.req.req5.usn1.usn1 = 0; - r.in.req.req5.usn1.usn2 = 0; - r.in.req.req5.usn1.usn3 = 0; - r.in.req.req5.coursor = NULL; - r.in.req.req5.unknown1 = 0;/*0x10201C70;*/ - r.in.req.req5.unknown2 = 0;/*402;*/ - r.in.req.req5.unknown3 = 0;/*402116;*/ - r.in.req.req5.unknown4 = 0; - r.in.req.req5.h1 = 0; + nc.guid = null_guid; + nc.sid = null_sid; + nc.dn = priv->domain_obj_dn?priv->domain_obj_dn:""; + + r.in.req.req5.destination_dsa_guid = GUID_random(); + r.in.req.req5.source_dsa_guid = null_guid; + r.in.req.req5.naming_context = &nc; + r.in.req.req5.replication_state.tmp_highest_usn = 0; + r.in.req.req5.replication_state.reserved_usn = 0; + r.in.req.req5.replication_state.highest_usn = 0; + r.in.req.req5.highwatermark_vector = NULL; + r.in.req.req5.unknown1 = 0;/*0x10201C70;*/ + r.in.req.req5.unknown2 = 402; + r.in.req.req5.unknown3 = 402116; + r.in.req.req5.unknown4 = 0; + r.in.req.req5.h1 = 0; break; case 8: - nc.guid = null_guid; - nc.sid = null_sid; - nc.dn = priv->domain_obj_dn?priv->domain_obj_dn:""; - - r.in.req.req8.guid1 = null_guid; - r.in.req.req8.guid2 = null_guid; - r.in.req.req8.naming_context = &nc; - r.in.req.req8.usn1.usn1 = 0; - r.in.req.req8.usn1.usn2 = 0; - r.in.req.req8.usn1.usn3 = 0; - r.in.req.req8.coursor = NULL; - r.in.req.req8.unknown1 = 0;/*0x10201C70;*/ - r.in.req.req8.unknown2 = 0;/*402;*/ - r.in.req.req8.unknown3 = 0;/*402116;*/ - r.in.req.req8.unknown4 = 0; - r.in.req.req8.h1 = 0; - r.in.req.req8.unique_ptr1 = 0; - r.in.req.req8.unique_ptr2 = 0; - r.in.req.req8.ctr12.count = 0; - r.in.req.req8.ctr12.array = NULL; + nc.guid = null_guid; + nc.sid = null_sid; + nc.dn = priv->domain_obj_dn?priv->domain_obj_dn:""; + + r.in.req.req8.destination_dsa_guid = GUID_random(); + r.in.req.req8.source_dsa_guid = null_guid; + r.in.req.req8.naming_context = &nc; + r.in.req.req8.replication_state.tmp_highest_usn = 0; + r.in.req.req8.replication_state.reserved_usn = 0; + r.in.req.req8.replication_state.highest_usn = 0; + r.in.req.req8.highwatermark_vector = NULL; + r.in.req.req8.unknown1 = 0x10201C70; + r.in.req.req8.unknown2 = 402; + r.in.req.req8.unknown3 = 402116; + r.in.req.req8.unknown4 = 0; + r.in.req.req8.h1 = 0; + r.in.req.req8.unique_ptr1 = 0; + r.in.req.req8.unique_ptr2 = 0; + r.in.req.req8.ctr12.count = 0; + r.in.req.req8.ctr12.array = NULL; break; } -- cgit