Add actual type any as RR_ANY

This commit is contained in:
Miek Gieben 2011-08-22 14:13:43 +02:00
parent 18596dd3f8
commit 8c5049bd06
1 changed files with 13 additions and 0 deletions

View File

@ -161,6 +161,19 @@ func NewRR(i uint16) RR {
return r
}
type RR_ANY struct {
Hdr RR_Header
// Does not have any rdata
}
func (rr *RR_ANY) Header() *RR_Header {
return &rr.Hdr
}
func (rr *RR_ANY) String() string {
return rr.Hdr.String()
}
type RR_CNAME struct {
Hdr RR_Header
Cname string "domain-name"