From a6305c4a168e7d3ac06f824dce05767bc7e9b9c0 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Thu, 30 Sep 2010 20:35:00 -0700 Subject: s4 dns: Better error handling when parsing invalid or unknown records --- librpc/idl/dns.idl | 4 +++- librpc/idl/dnsp.idl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'librpc/idl') diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl index b4075365ab..486b16e50b 100644 --- a/librpc/idl/dns.idl +++ b/librpc/idl/dns.idl @@ -60,7 +60,9 @@ interface dns } dns_rcode; typedef [public,enum16bit] enum { - DNS_QCLASS_IP = 0x01 + DNS_QCLASS_IP = 0x0001, + DNS_QCLASS_NONE = 0x00FE, + DNS_QCLASS_ANY = 0x00FF } dns_qclass; /* These vese values could have been merged with NBT_QTYPE values, but diff --git a/librpc/idl/dnsp.idl b/librpc/idl/dnsp.idl index 3a8e384dbe..905e420482 100644 --- a/librpc/idl/dnsp.idl +++ b/librpc/idl/dnsp.idl @@ -113,8 +113,8 @@ interface dnsp dns_record_type wType; uint32 dwFlags; uint32 dwSerial; - uint32 dwTtlSeconds; - uint32 dwTimeStamp; + [flag(NDR_BIG_ENDIAN)] uint32 dwTtlSeconds; + uint32 dwTimeStamp; uint32 dwReserved; [switch_is(wType)] dnsRecordData data; } dnsp_DnssrvRpcRecord; -- cgit