summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-09-29 19:32:57 -0700
committerKai Blin <kai@samba.org>2011-10-02 12:00:27 +0200
commitf163bd1dac691d396725ac27e4493f6d217a66ce (patch)
tree893e24e3f7c75b396d297cb115c4e190b3d90cd8
parentd5dcb9eef1aaf78ae24bca90235acc263bc04a26 (diff)
downloadsamba-f163bd1dac691d396725ac27e4493f6d217a66ce.tar.gz
samba-f163bd1dac691d396725ac27e4493f6d217a66ce.tar.bz2
samba-f163bd1dac691d396725ac27e4493f6d217a66ce.zip
dns: Add support for TXT record to idl file
-rw-r--r--librpc/idl/dns.idl6
1 files changed, 6 insertions, 0 deletions
diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl
index 66390b8c48..707e0d94da 100644
--- a/librpc/idl/dns.idl
+++ b/librpc/idl/dns.idl
@@ -143,6 +143,11 @@ interface dns
dns_string exchange;
} dns_mx_record;
+ typedef [public] struct {
+ [value(strlen(txt))] uint8 length;
+ [charset(DOS)] uint8 txt[length];
+ } dns_txt_record;
+
typedef [nodiscriminant,public,flag(NDR_NOALIGN)] union {
[case(DNS_QTYPE_A)] ipv4address ipv4_record;
[case(DNS_QTYPE_NS)] dns_string ns_record;
@@ -150,6 +155,7 @@ interface dns
[case(DNS_QTYPE_SOA)] dns_soa_record soa_record;
[case(DNS_QTYPE_PTR)] dns_string ptr_record;
[case(DNS_QTYPE_MX)] dns_mx_record mx_record;
+ [case(DNS_QTYPE_TXT)] dns_txt_record txt_record;
[case(DNS_QTYPE_AAAA)] ipv6address ipv6_record;
[case(DNS_QTYPE_SRV)] dns_srv_record srv_record;
[default];