diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-03-22 14:49:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:11 -0500 |
commit | 1bb3e99d063332ac9d8af92cb3210465cfa66fb4 (patch) | |
tree | ae5e6765e67e9691dfcb7f26fbfcae917be57f0c /source4/torture | |
parent | 07c705745a208b1e9ce79d99b7c5b340763aab14 (diff) | |
download | samba-1bb3e99d063332ac9d8af92cb3210465cfa66fb4.tar.gz samba-1bb3e99d063332ac9d8af92cb3210465cfa66fb4.tar.xz samba-1bb3e99d063332ac9d8af92cb3210465cfa66fb4.zip |
r5949: give things more meaning, and reuse structs where it is possible
to make things more clear
metze
(This used to be commit adefeeb4f362dba06cddacf6f58194ef1f967ec9)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/drsuapi.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c index 88ff85d8da7..9774a92a8a7 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; } |