4 IDL structures for DNSP structures
6 See [MS-DNSP].pdf in MCPP for details
12 note that this is not a real RPC interface. We are just using PIDL
13 to save us a lot of tedious hand parsing of the dnsRecord
14 attribute. The uuid is randomly generated.
17 uuid("bdd66e9e-d45f-4202-85c0-6132edc4f30a"),
19 pointer_default(unique),
20 helper("../librpc/ndr/ndr_dnsp.h"),
21 helpstring("DNSP interfaces")
44 DNS_TYPE_AFSDB = 0x12,
55 DNS_TYPE_NAPTR = 0x23,
56 DNS_TYPE_DNAME = 0x27,
58 DNS_TYPE_RRSIG = 0x2E,
60 DNS_TYPE_DNSKEY= 0x30,
61 DNS_TYPE_DHCID = 0x31,
63 DNS_TYPE_WINS = 0xFF01,
64 DNS_TYPE_WINSR = 0xFF02
67 typedef [public] struct {
77 typedef [public] struct {
84 typedef [nodiscriminant] union {
85 [case(DNS_TYPE_A)] [flag(NDR_BIG_ENDIAN)] ipv4address ip;
86 [case(DNS_TYPE_NS)] dnsp_name ns;
87 [case(DNS_TYPE_CNAME)] dnsp_name cname;
88 [case(DNS_TYPE_SOA)] [flag(NDR_BIG_ENDIAN)] dnsp_soa soa;
89 [case(DNS_TYPE_PTR)] dnsp_name ptr;
90 [case(DNS_TYPE_SRV)] [flag(NDR_BIG_ENDIAN)] dnsp_srv srv;
91 [default] [flag(NDR_REMAINING)] DATA_BLOB data;
94 /* this is the format for the dnsRecord attribute in the DNS
96 typedef [public] struct {
98 dns_record_type wType;
104 [switch_is(wType)] dnsRecordData data;
105 } dnsp_DnssrvRpcRecord;
109 this is a convenience hook for ndrdump
111 void decode_DnssrvRpcRecord(
112 [in] dnsp_DnssrvRpcRecord blob