Small tweaks to the pull request from Alex
This commit is contained in:
parent
110f6c9ea7
commit
6c9cc37ac3
|
@ -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)
|
||||
|
|
12
types.go
12
types.go
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue