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 [nodiscriminant
] union {
68 [case(DNS_TYPE_A
)] [flag
(NDR_BIG_ENDIAN
)] ipv4address ip
;
69 [case(DNS_TYPE_NS
)] dnsp_name ns
;
70 [default] [flag
(NDR_REMAINING
)] DATA_BLOB data
;
73 /* this is the format for the dnsRecord attribute in the DNS
75 typedef [public] struct {
77 dns_record_type wType
;
83 [switch_is(wType
)] dnsRecordData data
;
84 } dnsp_DnssrvRpcRecord
;
88 this is a convenience hook for ndrdump
90 void decode_DnssrvRpcRecord
(
91 [in] dnsp_DnssrvRpcRecord blob