This commit is contained in:
Miek Gieben 2012-08-26 22:40:00 +02:00
parent c833247546
commit 80038f2230
2 changed files with 3 additions and 3 deletions

2
dns.go
View File

@ -120,7 +120,7 @@ type RR interface {
} }
// DNS resource records. // DNS resource records.
// There are many types of messages, // There are many types of RRs,
// but they all share the same header. // but they all share the same header.
type RR_Header struct { type RR_Header struct {
Name string `dns:"cdomain-name"` Name string `dns:"cdomain-name"`

View File

@ -1149,7 +1149,7 @@ type RR_NSEC3PARAM struct {
Flags uint8 Flags uint8
Iterations uint16 Iterations uint16
SaltLength uint8 SaltLength uint8
Salt string `dns:"hex"` // hexsize?? Salt string `dns:"hex"`
} }
func (rr *RR_NSEC3PARAM) Header() *RR_Header { func (rr *RR_NSEC3PARAM) Header() *RR_Header {
@ -1204,7 +1204,7 @@ func (rr *RR_TKEY) Copy() RR {
return &RR_TKEY{*rr.Hdr.CopyHeader(), rr.Algorithm, rr.Inception, rr.Expiration, rr.Mode, rr.Error, rr.KeySize, rr.Key, rr.OtherLen, rr.OtherData} return &RR_TKEY{*rr.Hdr.CopyHeader(), rr.Algorithm, rr.Inception, rr.Expiration, rr.Mode, rr.Error, rr.KeySize, rr.Key, rr.OtherLen, rr.OtherData}
} }
// Unknown RR representation // RR_RFC3597 representes an unknown RR.
type RR_RFC3597 struct { type RR_RFC3597 struct {
Hdr RR_Header Hdr RR_Header
Rdata string `dns:"hex"` Rdata string `dns:"hex"`