summaryrefslogtreecommitdiff
path: root/librpc/idl
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-10-22 09:37:38 +0200
committerKai Blin <kai@samba.org>2010-10-23 10:17:05 +0000
commit719a6bbfede5b124c96f7c84d27e68ac285b073a (patch)
treed6a0ce0cdaa7f319d1fa3286ccf1417877f5fcb6 /librpc/idl
parent96195b2c0c239781c47f51bbf62156a8804f9525 (diff)
downloadsamba-719a6bbfede5b124c96f7c84d27e68ac285b073a.tar.gz
samba-719a6bbfede5b124c96f7c84d27e68ac285b073a.tar.bz2
samba-719a6bbfede5b124c96f7c84d27e68ac285b073a.zip
ndr dns: Add simple parser
Diffstat (limited to 'librpc/idl')
-rw-r--r--librpc/idl/dns.idl9
1 files changed, 5 insertions, 4 deletions
diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl
index 1ccf822336..16dcf52929 100644
--- a/librpc/idl/dns.idl
+++ b/librpc/idl/dns.idl
@@ -10,7 +10,7 @@
import "misc.idl";
[
- helper("librpc/ndr/ndr_dnsp.h"),
+ helper("librpc/ndr/ndr_dns.h"),
helpstring("DNS records"),
version(0.0),
uuid("a047c001-5f22-40b0-9d52-7042c43f711a")
@@ -109,7 +109,7 @@ interface dns
} dns_qtype;
typedef [public] struct {
- dnsp_name name;
+ dns_string name;
dns_qtype question_type;
dns_qclass question_class;
} dns_name_question;
@@ -120,12 +120,13 @@ interface dns
} dns_rdata_data;
typedef [nodiscriminant,public] union {
- [case(DNS_QTYPE_A)] ipv4address ipv4_address;
+ [case(DNS_QTYPE_A),subcontext(2)] ipv4address ipv4_address;
+ [case(DNS_QTYPE_AAAA),subcontext(2)] ipv6address ipv6_address;
[default] dns_rdata_data data;
} dns_rdata;
typedef [flag(LIBNDR_PRINT_ARRAY_HEX),public] struct {
- dnsp_name name;
+ dns_string name;
dns_qtype rr_type;
dns_qclass rr_class;
uint32 ttl;