[PATCH 1/2] idl: Add support for parsing OPT records

Matthieu Patou mat at samba.org
Wed May 29 00:39:36 MDT 2013


Reviewed-By: Matthieu Patou <mat at matws.net>
On 05/25/2013 04:21 AM, Kai Blin wrote:
> Signed-off-by: Kai Blin <kai at samba.org>
> ---
>   librpc/idl/dns.idl | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl
> index 984f2b3..5b86f7e 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,
> @@ -168,6 +169,12 @@ interface dns
>   	} 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;
>   		uint32         expiration;
> @@ -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];


-- 
Matthieu Patou
Samba Team
http://samba.org



More information about the samba-technical mailing list