From 5bcebb54da8eed535e5f7034ed1f7a95456f19b1 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Sat, 25 May 2013 13:21:32 +0200 Subject: idl: Add support for parsing OPT records Signed-off-by: Kai Blin Reviewed-by: Michael Adam --- librpc/idl/dns.idl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'librpc') diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl index 984f2b34a3..5b86f7e2de 100644 --- a/librpc/idl/dns.idl +++ b/librpc/idl/dns.idl @@ -106,6 +106,7 @@ interface dns DNS_QTYPE_ATMA = 0x0022, DNS_QTYPE_NAPTR = 0x0023, DNS_QTYPE_DNAME = 0x0027, + DNS_QTYPE_OPT = 0x0029, DNS_QTYPE_DS = 0x002B, DNS_QTYPE_RRSIG = 0x002E, DNS_QTYPE_NSEC = 0x002F, @@ -167,6 +168,12 @@ interface dns dns_string target; } dns_srv_record; + typedef [public] struct { + uint16 option_code; + uint16 option_length; + uint8 option_data[option_length]; + } dns_opt_record; + typedef [public] struct { dns_string algorithm; uint32 inception; @@ -216,6 +223,7 @@ interface dns [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; + [case(DNS_QTYPE_OPT)] dns_opt_record opt_record; [case(DNS_QTYPE_TSIG)] dns_tsig_record tsig_record; [case(DNS_QTYPE_TKEY)] dns_tkey_record tkey_record; [default]; -- cgit