Small tweaks to the pull request from Alex

This commit is contained in:
Miek Gieben 2013-12-06 07:46:08 +00:00
parent 110f6c9ea7
commit 6c9cc37ac3
2 changed files with 3 additions and 13 deletions

View File

@ -197,8 +197,8 @@ func TestSignVerify(t *testing.T) {
}
}
func Test65534(t *testing.T) {
t6 := new(GENERIC)
func test65534(t *testing.T) {
t6 := new(RFC3597)
t6.Hdr = RR_Header{"miek.nl.", 65534, ClassINET, 14400, 0}
t6.Rdata = `\# 505D8700001`
key := new(DNSKEY)

View File

@ -199,16 +199,6 @@ func (rr *ANY) copy() RR { return &ANY{*rr.Hdr.copyHeader()} }
func (rr *ANY) String() string { return rr.Hdr.String() }
func (rr *ANY) len() int { return rr.Hdr.len() }
type GENERIC struct {
Hdr RR_Header
Rdata string
}
func (rr *GENERIC) Header() *RR_Header { return &rr.Hdr }
func (rr *GENERIC) copy() RR { return &GENERIC{*rr.Hdr.copyHeader(), rr.Rdata} }
func (rr *GENERIC) String() string { return rr.Hdr.String() + " " + string(rr.Rdata) }
func (rr *GENERIC) len() int { return rr.Hdr.len() + len(rr.Rdata) + 1 }
type CNAME struct {
Hdr RR_Header
Target string `dns:"cdomain-name"`
@ -1191,7 +1181,7 @@ func (rr *TKEY) len() int {
len(rr.Key) + 2 + len(rr.OtherData)
}
// RFC3597 representes an unknown RR.
// RFC3597 representes an unknown/generic RR.
type RFC3597 struct {
Hdr RR_Header
Rdata string `dns:"hex"`