From 65f9a13dc3f3e26aa3f7a9d90abe94a7b2e6bc77 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 27 Sep 2011 17:10:14 +1000 Subject: s4-dns: Added support for multiple DNS_RPC_RECORDS structures Windows returns multiple DNS_RPC_RECORDS structures, but there is no well defined structure in [MS-DNSP] doc. Added hand-written code to parse ndr. Pair-Programmed-With: Andrew Tridgell Signed-off-by: Andrew Tridgell --- librpc/idl/dnsserver.idl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'librpc/idl/dnsserver.idl') diff --git a/librpc/idl/dnsserver.idl b/librpc/idl/dnsserver.idl index 0868d6fb6a..306414e979 100644 --- a/librpc/idl/dnsserver.idl +++ b/librpc/idl/dnsserver.idl @@ -9,7 +9,9 @@ import "misc.idl", "dnsp.idl"; [ uuid("50abc2a4-574d-40b3-9d66-ee4fd5fba076"), version(5.0), pointer_default(unique), - helpstring("DNS Server") + endpoint("ncacn_ip_tcp:", "ncacn_np:[\\pipe\\dnsserver]"), + helper("../librpc/ndr/ndr_dnsserver.h"), + helpstring("DNS Management Server") ] interface dnsserver { @@ -1499,7 +1501,7 @@ import "misc.idl", "dnsp.idl"; [in,unique,string,charset(UTF8)] uint8 *pszFilterStart, [in,unique,string,charset(UTF8)] uint8 *pszFilterStop, [out] uint32 *pdwBufferLength, - [out,unique,subcontext(4),subcontext_size(*pdwBufferLength)] DNS_RPC_RECORDS *pBuffer + [out,ref,subcontext(4),subcontext_size(*pdwBufferLength)] DNS_RPC_RECORDS_ARRAY **pBuffer ); WERROR DnssrvUpdateRecord2( -- cgit