summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-21 11:59:05 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-21 02:42:37 +0100
commit049a16c8ef475f6b327292d231022fd4c5aaddf1 (patch)
tree791188e64fde655109167f9a53cb8bc17f883458
parent8c04657600cd6702dbfc66744fe2268c59ebea0b (diff)
downloadsamba-049a16c8ef475f6b327292d231022fd4c5aaddf1.tar.gz
samba-049a16c8ef475f6b327292d231022fd4c5aaddf1.tar.bz2
samba-049a16c8ef475f6b327292d231022fd4c5aaddf1.zip
dns: auto-calculate the wDataLength field in DNS records
we need this for creating new records
-rw-r--r--librpc/idl/dnsp.idl4
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/idl/dnsp.idl b/librpc/idl/dnsp.idl
index 905e420482..eed0c478fb 100644
--- a/librpc/idl/dnsp.idl
+++ b/librpc/idl/dnsp.idl
@@ -92,7 +92,7 @@ interface dnsp
dnsp_name nameTarget;
} dnsp_srv;
- typedef [nodiscriminant] union {
+ typedef [nodiscriminant,gensize] union {
[case(DNS_TYPE_A)] [flag(NDR_BIG_ENDIAN)] ipv4address ipv4;
[case(DNS_TYPE_NS)] dnsp_name ns;
[case(DNS_TYPE_CNAME)] dnsp_name cname;
@@ -109,7 +109,7 @@ interface dnsp
/* this is the format for the dnsRecord attribute in the DNS
partitions in AD */
typedef [public] struct {
- uint16 wDataLength;
+ [value(ndr_size_dnsRecordData(&data,wType,ndr->flags))] uint16 wDataLength;
dns_record_type wType;
uint32 dwFlags;
uint32 dwSerial;